Skip to content

fix(ci): add actions:write permission to release-auto-tag workflow#361

Merged
drew merged 1 commit intomainfrom
fix/release-auto-tag-permissions/an
Mar 16, 2026
Merged

fix(ci): add actions:write permission to release-auto-tag workflow#361
drew merged 1 commit intomainfrom
fix/release-auto-tag-permissions/an

Conversation

@drew
Copy link
Collaborator

@drew drew commented Mar 16, 2026

Summary

Add actions: write permission to the Release Auto-Tag workflow so the GITHUB_TOKEN can dispatch the Release Tag workflow via gh workflow run.

Related Issue

Fixes failed run: https://github.com/NVIDIA/OpenShell/actions/runs/23149319067

Changes

  • Added actions: write to the permissions block in .github/workflows/release-auto-tag.yml

Root Cause

The "Trigger Release Tag workflow" step calls gh workflow run release-tag.yml, which hits the GitHub API endpoint POST /repos/{owner}/{repo}/actions/workflows/{id}/dispatches. This endpoint requires the actions: write permission on the token. The workflow only had contents: write, resulting in:

HTTP 403: Resource not accessible by integration

Note

The v0.0.6 tag was already pushed successfully before the failure. After merging this fix, the Release Tag workflow should be manually triggered with tag: v0.0.6 to complete that release.

Testing

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

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.
@drew drew self-assigned this Mar 16, 2026
@drew drew requested review from johntmyers and pimlock March 16, 2026 17:45
@drew drew merged commit c1195be into main Mar 16, 2026
9 checks passed
@drew drew deleted the fix/release-auto-tag-permissions/an branch March 16, 2026 17:47
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.

2 participants