Repository navigation
ci: group dependabot updates and cancel superseded pr runs - #429
Merged
Merged
Conversation
Dependabot opened one pull request per dependency, and each one ran every workflow. Group the Maven and GitHub Actions updates so each ecosystem opens a single weekly pull request, and cancel a pull request run when a newer push replaces it.
There was a problem hiding this comment.
Code Review
This pull request updates the Dependabot configuration in .github/dependabot.yml to group updates. It adds a maven-dependencies group to consolidate all Maven dependency updates into a single weekly pull request, and expands the existing GitHub Actions group to cover all actions instead of just CodeQL. There are no review comments, and I have no feedback to provide.
Touching the file made the actions scan flag its existing unpinned action references, and the job is too small for run cancellation to matter.
The actions scan warns when a workflow falls back to the default token permissions. Both jobs only check out and build, so read access to contents is enough.
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.
Why
Dependabot opened one pull request per dependency, and each one ran every workflow. Nothing cancelled a run once a newer push replaced it.
What changes
maven-dependenciespull request per week.codeql-actiongroup becomes a catch-allgithub-actionsgroup, so all action updates arrive in one pull request.java.yml,codeql.ymlandcommitlint.ymlget aconcurrencygroup that cancels the in-progress run of a pull request when a new push or a Dependabot rebase arrives. Other triggers are keyed by commit, so every commit onmainand the scheduled CodeQL run still get their own run.Verified
dependabot.ymland all workflow files parse as YAML.