ci: group dependabot updates for multi-subpath actions - #5467
Draft
jamescrosswell wants to merge 4 commits into
Draft
ci: group dependabot updates for multi-subpath actions#5467jamescrosswell wants to merge 4 commits into
jamescrosswell wants to merge 4 commits into
Conversation
Dependabot treats each subpath of an action repo as a separate dependency, so it opens a PR for github/codeql-action/init without a matching bump for github/codeql-action/analyze. The mismatched versions fail CodeQL with 'Loaded a configuration file for version X, but running version Y' (#5461). Group each action repo that is used via more than one subpath so all of its subpaths move in a single PR. Fixes #5466 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
jamescrosswell
commented
Aug 3, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5467 +/- ##
=======================================
Coverage 74.69% 74.69%
=======================================
Files 512 512
Lines 18722 18722
Branches 3660 3660
=======================================
Hits 13985 13985
Misses 3865 3865
Partials 872 872 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Replaces the four per-repo groups with one "*" group, matching getsentry/sentry-java. Still guarantees that codeql-action/init and codeql-action/analyze move together, covers action repos added later without further config, and collapses weekly version bumps into a single PR instead of one per action. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
# Conflicts: # .github/dependabot.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#skip-changelog
Summary
Fixes #5466.
Dependabot treats each subpath of an action repository as a separate dependency. That's why #5461 bumped
github/codeql-action/initto 4.37.3 and leftanalyzeon 4.37.1 — CodeQL then failed with:This adds a single wildcard
groupsentry to thegithub-actionsecosystem, so every action is bumped together in one PR:This is the same approach getsentry/sentry-java already uses. Besides fixing the mismatch, it collapses the weekly stream of one-PR-per-action version bumps into a single PR, which is a good deal less noisy. It also covers any action repo added later without needing further config.
Repos in this repository that are consumed via more than one subpath, and so depend on this lockstep:
github/codeql-action—init,analyzegetsentry/github-workflows—danger,validate-pr,updater,sentry-cli/integration-testgetsentry/craft— root action + thechangelog-preview.ymlreusable workflowactions/cache— root +restoreReferences
groups— syntax;applies-todefaults to version updatespatternsmatch dependency names,*wildcard supportedOne behaviour this relies on is not covered by those docs: grouping for the
github-actionsecosystem is never explicitly documented as supported. It's in active production use in getsentry/sentry-java and GitHub's own actions/checkout, which is the basis for relying on it here.Notes for review
getsentry/craftis already drifted onmainand this PR does not correct it: release.yml:38 pins2.26.14while changelog-preview.yml:19 pins2.26.12. Nothing is broken today because the two are used independently, and the new group should pull them back into lockstep on Dependabot's next run. Flagging it in case you'd rather see it corrected explicitly here..github/dependabot.ymlchanges only take effect once merged to the default branch, so CI on this PR can't demonstrate the fix. Theinit/analyzemismatch that prompted it was fixed directly on build(deps): bump github/codeql-action/init from 4.37.1 to 4.37.3 #5461, whereAnalyzeis now green.