Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/dependabot.yml
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
Expand All @@ -7,12 +8,15 @@ updates:
interval: "weekly"
day: "monday"
cooldown:
default-days: 7
default-days: 3

Copy link
Copy Markdown

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.

groups:
python-minor:
update-types:
- "minor"
- "patch"
ignore:
- dependency-name: "*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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"
Expand All @@ -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"
Expand All @@ -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"]
Loading