Repository navigation
ci: scope release permissions to jobs and split major dependency updates - #432
Merged
Merged
Conversation
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):".
There was a problem hiding this comment.
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.
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
Both open Dependabot pull requests are red for reasons outside their own changes.
release.ymlgrantscontents,packagesandpull-requestswrite access at the workflow level, and the scan rejects that as soon as a pull request touches the file.jsonschema-generator4.38.0 to 5.0.0, a major upgrade that moves to Jackson 3, and it takes the eleven routine updates down with it.What changes
release.yml: the workflow-level permissions become{}and each job declares its own.releasegetscontents: writeandpull-requests: write;publishandpublish-snapshotgetcontents: readandpackages: write.chore(deps)withinclude: scopeproducedchore(deps)(deps):, which is not a valid conventional commit and which Release Please logs as unparseable. The prefix is nowchore, givingchore(deps):.Not covered
The
releasejob onmainfails 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.