Skip to content

ci: let Dependabot label all its pull requests - #81

Merged
uniqueg merged 1 commit into
devfrom
ci/80-dependabot-labels
Nov 14, 2026
Merged

uniqueg merged 1 commit into
devfrom
ci/80-dependabot-labels

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Lets Dependabot label all its pull requests, security updates included, with the organisation's label type: dependencies only, instead of its own labels (dependencies plus an ecosystem label).

In .github/dependabot.yml:

  • Remove target-branch: dev from every entry (7 entries). dev is the default branch, so version updates still target it.
  • Replace the header comment about target-branch with one that explains why no entry sets it.
  • Keep the ignore rules. They now also apply to security updates: crypt4gh (updated by hand with the version the tests use) and the holds on minor and major updates of the python image and on major updates of the end-to-end test images. That's intended.

Nothing else changes: compared as data (keys sorted), the new file equals the old one minus target-branch plus labels on every entry.

Closes #80

Light lane: CI configuration only (Dependabot), no secrets, permissions or release workflow touched, so the reviewer subagents were skipped; I reviewed the diff myself.

Verification

  • yq parses the new .github/dependabot.yml; every updates entry has labels: ["type: dependencies"]; no target-branch is left.
  • Semantic diff against the default branch (yq -o=json 'sort_keys(..)'): only the intended change.
  • CI: all checks pass (CI passed green).

Declined review findings

  • Sourcery: the ignore rules now suppress security updates in held ranges. Intended (see above): those updates need hand-made changes, and Dependabot alerts, code scanning and the CI image scan still surface the advisories.

Open questions

None.

🤖 Generated with Claude Code

Remove `target-branch` from every Dependabot entry: it names the default
branch anyway, and while it is set, GitHub doesn't apply an entry's
options, labels included, to security updates. Security update pull
requests then get `type: dependencies` instead of Dependabot's own
labels. The `ignore` rules now also apply to security updates, as
intended.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg uniqueg self-assigned this Nov 14, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Remove target-branch: dev from all Dependabot entries and update the header comment so the entries’ labels and ignore rules also apply to security updates.

  • .github/dependabot.yml L2-86 (8 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@uniqueg
uniqueg marked this pull request as ready for review November 14, 2026 19:30
@sourcery-ai

sourcery-ai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Linked issues

Checked at commit 1f95d3b

#80 ci: let Dependabot label all its pull requests · 3 of 4 met · 1 to check by hand

# Requirement Status Notes
1 No entry or group sets target-branch. ✅ Met All seven target-branch: dev settings are removed.
2 Every updates entry sets labels: ["type: dependencies"]. ✅ Met The configuration has seven entries, and each has the requested label.
3 Nothing else in the file changes, apart from the comment. ✅ Met The diff removes only the seven target-branch settings and updates the header comment; the existing ignore rules remain.
4 Dependabot pull requests opened afterwards, including security updates, carry only type: dependencies. 👀 Check by hand (external system) Check the labels on Dependabot pull requests opened after the change, including a security update.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".github/dependabot.yml" line_range="41" />
<code_context>
     labels: ["type: dependencies"]
     schedule:
       interval: monthly
-    target-branch: dev
     versioning-strategy: increase-if-necessary
     groups:
</code_context>
<issue_to_address>
**Security fixes are suppressed**

When a security advisory affects an ignored dependency, dependabot applies the existing `ignore` rules to security updates and suppresses the corresponding security PRs, leaving affected images vulnerable until a maintainer performs the manual update. The CI image audit only runs when CI runs; it does not replace those update PRs.

Ensure ignored dependencies still receive timely security review and updates, for example by providing a separate monitored manual update process or keeping security updates eligible.

Also at `.github/dependabot.yml:32`, `.github/dependabot.yml:67`.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: .github/dependabot.yml:41


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread .github/dependabot.yml Resolved
@uniqueg
uniqueg merged commit 67b32b5 into dev Nov 14, 2026
51 checks passed
@uniqueg
uniqueg deleted the ci/80-dependabot-labels branch November 14, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: let Dependabot label all its pull requests

1 participant