Skip to content

ci: group dependabot updates and cancel superseded pr runs - #429

Merged
xavidop merged 3 commits into
mainfrom
ci/dependabot-grouping
Nov 12, 2026
Merged

xavidop merged 3 commits into
mainfrom
ci/dependabot-grouping

Conversation

@xavidop

@xavidop xavidop commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Dependabot (Maven): all Maven updates are grouped into one maven-dependencies pull request per week.
  • Dependabot (GitHub Actions): the codeql-action group becomes a catch-all github-actions group, so all action updates arrive in one pull request.
  • Workflows: java.yml, codeql.yml and commitlint.yml get a concurrency group 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 on main and the scheduled CodeQL run still get their own run.

Verified

  • dependabot.yml and all workflow files parse as YAML.

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.

@gemini-code-assist gemini-code-assist 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.

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.
@xavidop
xavidop merged commit fa49555 into main Nov 12, 2026
13 checks passed
@xavidop
xavidop deleted the ci/dependabot-grouping branch November 12, 2026 11:40
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.

1 participant