Skip to content

ci: grant release.yml contents:write (fix release asset upload)#247

Merged
Deniel9204 merged 1 commit into
mainfrom
ci/release-contents-write
Jun 26, 2026
Merged

ci: grant release.yml contents:write (fix release asset upload)#247
Deniel9204 merged 1 commit into
mainfrom
ci/release-contents-write

Conversation

@Deniel9204

Copy link
Copy Markdown
Owner

The v0.1.0 release built all platforms but every job failed at Upload to release with Resource not accessible by integrationrelease.yml had no permissions: block, so the token was read-only. Add permissions: contents: write (benchmark.yml already has it). Dry runs missed it because they use upload-artifact, not the release-asset upload.

The v0.1.0 release built every platform successfully but every job failed at the
"Upload to release" step with "Resource not accessible by integration": the
workflow declared no permissions, so its GITHUB_TOKEN was read-only and
actions/upload-release-asset couldn't attach assets. Add the workflow-level
`permissions: contents: write` (same as benchmark.yml already uses). The dry
runs missed this because they upload via actions/upload-artifact (no write
needed), not the release-asset path.
@Deniel9204 Deniel9204 merged commit 41ed889 into main Jun 26, 2026
9 checks passed
@Deniel9204 Deniel9204 deleted the ci/release-contents-write branch June 26, 2026 19:53
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