Skip to content

ci: scope release permissions to jobs and split major dependency updates - #432

Merged
xavidop merged 1 commit into
mainfrom
ci/release-permissions-and-major-updates
Nov 12, 2026
Merged

xavidop merged 1 commit into
mainfrom
ci/release-permissions-and-major-updates

Conversation

@xavidop

@xavidop xavidop commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Why

Both open Dependabot pull requests are red for reasons outside their own changes.

What changes

  • release.yml: the workflow-level permissions become {} and each job declares its own. release gets contents: write and pull-requests: write; publish and publish-snapshot get contents: read and packages: write.
  • Dependabot (Maven): the group covers minor and patch updates only, so a major update opens its own pull request.
  • Dependabot commit prefix: chore(deps) with include: scope produced chore(deps)(deps):, which is not a valid conventional commit and which Release Please logs as unparseable. The prefix is now chore, giving chore(deps):.

Not covered

The release job on main fails with "GitHub Actions is not permitted to create or approve pull requests". That is a repository or organisation setting, not something this change can fix.

The actions scan rejects write permissions granted at the workflow level, which blocks
every pull request that touches release.yml. Give each release job only what it needs.

The grouped Maven update is held back whenever it contains a breaking major upgrade,
so group minor and patch updates only and let a major update open its own pull request.
Also fix the commit prefix, which produced "chore(deps)(deps):".

@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. It corrects the commit message prefix to prevent duplicate '(deps)' scopes in conventional commits and restricts the maven-dependencies group to minor and patch updates, allowing major updates to be processed in separate pull requests. There are no review comments, so I have no feedback to provide.

@xavidop
xavidop merged commit bd33875 into main Nov 12, 2026
12 checks passed
@xavidop
xavidop deleted the ci/release-permissions-and-major-updates branch November 12, 2026 12:04
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