chore(security): add Dependabot cooldown, grouped updates, and pin Python deps#190
chore(security): add Dependabot cooldown, grouped updates, and pin Python deps#190Copilot wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens dependency automation and CI dependency installation to make updates more controlled (Dependabot grouping/cooldown) and installs more deterministic (pinned tooling / hash-verified docs deps).
Changes:
- Add Dependabot cooldown rules and standardize GitHub Actions updates into a single group.
- Pin
pip/pipenvversions in the main workflow and switch to lockfile-drivenpipenv sync --dev. - Switch docs workflow installs to
pip install -r requirements-docs.txt --require-hashesand add a hash-pinnedrequirements-docs.txt.
Show a summary per file
| File | Description |
|---|---|
requirements-docs.txt |
Adds a hash-pinned docs dependency set for pip --require-hashes. |
.github/workflows/main.yml |
Pins installer tooling and uses pipenv sync --dev for reproducible CI installs. |
.github/workflows/docs.yml |
Switches docs CI install path to use the hash-pinned requirements file. |
.github/dependabot.yml |
Adds cooldown settings and standardizes grouping for GitHub Actions updates. |
Copilot's findings
- Files reviewed: 4/4 changed files
- Comments generated: 2
| @@ -0,0 +1,456 @@ | |||
| # This file was autogenerated by uv via the following command: | |||
| # uv pip compile /tmp/requirements-docs.in --python-version 3.9 --generate-hashes -o requirements-docs.txt | |||
| - name: Install Deps | ||
| run: | | ||
| python3 -m pip install pipenv && python3 -m pipenv install --dev --system | ||
| python3 -m pip install -r requirements-docs.txt --require-hashes |
|
@copilot fix the failing CI (https://github.com/advanced-security/policy-as-code/actions/runs/26190333329/job/77256285147?pr=190) for this PR |
Fixed in f9e69ce. The CI failure was caused by pinning |
Dependency ReviewThe following issues were found:
Vulnerabilitiesrequirements-docs.txtLicense Issuesrequirements-docs.txt
OpenSSF ScorecardScorecard details
Scanned Files
|
Fixed in 83c9cf1. I addressed both failing runs:
|
Fixed in 17355aa. Addressed the linked failures:
|
This updates dependency automation and Python install paths to enforce safer, more predictable updates across Dependabot and CI workflows. It adds Dependabot cooldown/grouping rules, pins workflow installer tooling, and moves docs installs to a hash-verified requirements file.
Dependabot policy hardening
cooldown.default-days: 3to eachupdatesentry in.github/dependabot.yml.github-actionsgrouping to a single catch-all group:groups.actions.patterns: ["*"].Main workflow dependency pinning
.github/workflows/main.yml, replaced unpinned bootstrap install with pinned versions ofpipandpipenv.pipenv installusage withpipenv sync --devfor lockfile-driven installs.Docs workflow hash verification
.github/workflows/docs.yml, replaced direct package install with:pip install -r requirements-docs.txt --require-hashes.requirements-docs.txtgenerated viauv pip compile --generate-hashes(hash-pinned dependency set).Lockfile expectation
Pipfile.lockremains committed in-repo and is used by the updated workflow path.