Skip to content

ci: grant publish job contents:write for GitHub Release#6

Merged
ferax564 merged 1 commit into
mainfrom
fix/publish-release-permissions
May 22, 2026
Merged

ci: grant publish job contents:write for GitHub Release#6
ferax564 merged 1 commit into
mainfrom
fix/publish-release-permissions

Conversation

@ferax564
Copy link
Copy Markdown
Owner

The v0.3.0 publish run succeeded at Publish to crates.io but failed at Create GitHub Release:

Resource not accessible by integration

The publish job had no permissions: block, so GITHUB_TOKEN defaulted to read-only and softprops/action-gh-release couldn't create the release. This adds least-privilege contents: write to the job.

v0.3.0's release was created manually after the fact; this prevents recurrence on the next tag.

🤖 Generated with Claude Code

The v0.3.0 publish workflow succeeded at the crates.io step but failed at
"Create GitHub Release" with "Resource not accessible by integration" —
the job had no permissions block, so GITHUB_TOKEN was read-only. Grant
least-privilege contents:write. (v0.3.0 release was created manually.)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ferax564 ferax564 merged commit defd378 into main May 22, 2026
6 checks passed
@ferax564 ferax564 deleted the fix/publish-release-permissions branch May 22, 2026 10:38
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