Repository navigation
ci(release): grant the mint token workflows write - #5
Merged
mattwilkinsonn merged 1 commit intoOct 16, 2026
Merged
mattwilkinsonn merged 1 commit into
mattwilkinsonn merged 1 commit into
Conversation
GitHub returns 403 on tag creation when the target commit's workflow tree matches no branch tip, unless the token has workflows write. Add it next to contents write, and pin the exact permission set in the release tag test. Refs RIG-5434 Co-authored-by: Matt Wilkinson <matt@rigel.build>
rigel-mintaka
marked this pull request as ready for review
October 15, 2026 18:45
Author
Review loop: all-clear
|
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
Matt ruled option A on RIG-5434. GitHub returns 403 on tag creation when the target commit's workflow tree matches no branch tip, unless the token has
workflows: write. The nix2container mint (RIG-5346) needs this. Same change as RigelBuild/woodpecker#100 and RigelBuild/jj-vine#38.What
.github/workflows/release-tag.yaml: the mint App token addspermission-workflows: writenext topermission-contents: write..github/scripts/release-tag.test.sh: asserts both permissions arewrite, and pins the exact permission set topermission-contents,permission-workflows.Verification
FAIL mint token has contents and workflows write onlybefore the workflow change.actionlintandshellcheckpass.Dependency
The automation App has
workflows=write(approved on RIG-5057). Installation acceptance is tracked on RIG-5434.Refs RIG-5434