Repository navigation
Dependencies: minor/patch updates, ignore major versions in Dependabot #472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| # Majors are ignored (ignore also covers security PRs, per GitHub docs); a security fix needing a major still raises a Dependabot alert (Security tab), so bump it by hand. | ||
| version: 2 | ||
| updates: | ||
| # Python dependencies via Poetry | ||
|
|
@@ -7,12 +8,15 @@ updates: | |
| interval: "weekly" | ||
| day: "monday" | ||
| cooldown: | ||
| default-days: 7 | ||
| default-days: 3 | ||
| groups: | ||
| python-minor: | ||
| update-types: | ||
| - "minor" | ||
| - "patch" | ||
| ignore: | ||
| - dependency-name: "*" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. low security, confidence medium, pass security Wildcard major ignore suppresses Dependabot security PRs Ignoring all semver-major updates also stops Dependabot from opening PRs for vulnerabilities whose only fix is a major version. The PR body acknowledges this. The vulnerability will then show only as an alert that someone must act on by hand, so a fix can be delayed if alerts are not watched. The same rule is repeated for github-actions and docker. Model output from untrusted input. Check it before you act on it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. low security, confidence medium, pass security Major-version ignore also suppresses Dependabot security-fix PRs Ignoring all semver-major updates applies to security updates too, so a vulnerability fixable only by a major bump will get no automatic PR, only an alert. This weakens an automated security control and relies on someone watching alerts and patching by hand. The PR acknowledges this tradeoff, so impact is limited. Model output from untrusted input. Check it before you act on it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. low supply-chain, confidence medium, pass supply-chain Blanket major-version ignore also suppresses security-fix PRs The wildcard ignore rule for semver-major updates applies to pip, github-actions and docker. Per the PR's own note, it also stops Dependabot opening security-update PRs when the fix needs a major bump. A vulnerable dependency or action could then stay unpatched until someone acts on an alert by hand. The same rule is added at lines 34 and 44 of the head file. It takes effect whenever Dependabot runs. The risk is reduced because it is disclosed and alerts stay on. Model output from untrusted input. Check it before you act on it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. low security, confidence medium, pass security Ignoring majors suppresses security-update PRs for major-only fixes The wildcard ignore rule for semver-major also applies to Dependabot security updates. A vulnerability whose fix exists only in a new major version will get an alert but no automated PR, so it could stay unpatched if nobody watches alerts. The PR acknowledges this and plans manual handling, so the impact is limited. The cooldown cut from 7 to 3 days also shortens the delay before new releases are adopted, which slightly raises exposure to freshly published malicious releases. Model output from untrusted input. Check it before you act on it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. low supply-chain, confidence medium, pass supply-chain Wildcard ignore of major versions also blocks security PRs Ignoring semver-major for every dependency in pip, github-actions and docker means Dependabot will not open a PR for a security fix that requires a major bump. The PR body acknowledges this and relies on alerts and manual work. Such vulnerabilities could stay unpatched if alerts are missed. This is a weakened automated security control, not malicious. Model output from untrusted input. Check it before you act on it. |
||
| update-types: ["version-update:semver-major"] | ||
|
|
||
| # GitHub Actions | ||
| - package-ecosystem: "github-actions" | ||
|
|
@@ -21,11 +25,14 @@ updates: | |
| interval: "weekly" | ||
| day: "monday" | ||
| cooldown: | ||
| default-days: 7 | ||
| default-days: 3 | ||
| groups: | ||
| actions: | ||
| patterns: | ||
| - "*" | ||
| ignore: | ||
| - dependency-name: "*" | ||
| update-types: ["version-update:semver-major"] | ||
|
|
||
| # Docker | ||
| - package-ecosystem: "docker" | ||
|
|
@@ -34,6 +41,8 @@ updates: | |
| interval: "weekly" | ||
| day: "monday" | ||
| ignore: | ||
| - dependency-name: "*" | ||
| update-types: ["version-update:semver-major"] | ||
| # Stay on the current minor's patch releases; bump the minor by hand | ||
| - dependency-name: "python" | ||
| update-types: ["version-update:semver-major", "version-update:semver-minor"] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
low supply-chain, confidence high, pass supply-chain
Dependabot cooldown cut from 7 to 3 days
The cooldown delays Dependabot PRs for newly published releases, which gives time for compromised or yanked packages to be caught. This change shortens it from 7 to 3 days for pip and github-actions (line 28 too). Newly released versions will now be proposed sooner, which weakens a supply-chain safeguard. It takes effect whenever Dependabot runs.
Model output from untrusted input. Check it before you act on it.