fix(ci): add actions:write permission to release-auto-tag workflow#361
Merged
fix(ci): add actions:write permission to release-auto-tag workflow#361
Conversation
The 'Trigger Release Tag workflow' step uses gh workflow run to dispatch release-tag.yml, which requires the actions:write permission. Without it the GITHUB_TOKEN gets HTTP 403: Resource not accessible by integration.
pimlock
approved these changes
Mar 16, 2026
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.
Summary
Add
actions: writepermission to the Release Auto-Tag workflow so theGITHUB_TOKENcan dispatch the Release Tag workflow viagh workflow run.Related Issue
Fixes failed run: https://github.com/NVIDIA/OpenShell/actions/runs/23149319067
Changes
actions: writeto thepermissionsblock in.github/workflows/release-auto-tag.ymlRoot Cause
The "Trigger Release Tag workflow" step calls
gh workflow run release-tag.yml, which hits the GitHub API endpointPOST /repos/{owner}/{repo}/actions/workflows/{id}/dispatches. This endpoint requires theactions: writepermission on the token. The workflow only hadcontents: write, resulting in:Note
The
v0.0.6tag was already pushed successfully before the failure. After merging this fix, the Release Tag workflow should be manually triggered withtag: v0.0.6to complete that release.Testing
actions: writeis required for workflow dispatchChecklist