Repository navigation
ci: label Dependabot PRs - #461
Conversation
Set labels: ["type: dependencies"] on every updates entry of .github/dependabot.yml, so that Dependabot pull requests carry the organisation's label instead of recreating its default labels (dependencies and ecosystem labels), which are not in the org label set. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideConfigurationAdd the
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #461 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 31 31
Lines 3013 3013
=========================================
Hits 3013 3013 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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="22" />
<code_context>
# to the same references (`tests/test_repository.py` checks), in one pull
# request for both files
service-images:
+ labels: ["type: dependencies"]
schedule:
interval: monthly
</code_context>
<issue_to_address>
**Security PRs keep default labels**
When dependabot creates a security-update PR for a vulnerable dependency, dependabot’s `updates[].labels` setting applies to version-update PRs, not security-update PRs, so those PRs retain the default labels instead of receiving `type: dependencies`. The `.github` workflow search found no other security-PR labeling handling.
Add a mechanism that labels security-update PRs too, such as a pull-request workflow, if those PRs are intended to carry this label.
Also at `.github/dependabot.yml:53`, `.github/dependabot.yml:64`, `.github/dependabot.yml:85`, `.github/dependabot.yml:99`, `.github/dependabot.yml:115`.
</issue_to_address>Linked issues
#460 ci: label Dependabot PRs with type: dependencies · 1 of 1 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Set labels: ["type: dependencies"] on every updates entry and every multi-ecosystem group. |
✅ Met | All six update entries and the service-images multi-ecosystem group have the requested label. |
Sourcery assessment
Needs a human reviewer. 1 finding to address first, and dependabot will add the dependency label to generated PRs. Reverting the configuration stops future applications, but labels already added remain on existing PRs until removed; that is bounded and easy to repair.
Blocking findings: .github/dependabot.yml:22
Summary
Sets
labels: ["type: dependencies"]on everyupdatesentry of.github/dependabot.yml(and on multi-ecosystem groups, if any), so thatDependabot pull requests carry the organisation's label instead of
recreating Dependabot's default labels.
Closes #460
Verification
yq; everyupdatesentry has exactlylabels: ["type: dependencies"], and the file is otherwise semanticallyunchanged (
yqcomparison with the label keys removed).Lane
Light lane: configuration only (Dependabot config), no secrets,
permissions or release workflow touched; reviewed the diff by hand.
Declined review findings
None.
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
CI:
type: dependencieslabel to generated pull requests.