Skip to content

ci: grant the CLI build job permission to upload release assets - #263

Merged
BinFlip merged 1 commit into
mainfrom
fix/release-asset-permissions
Aug 10, 2026
Merged

ci: grant the CLI build job permission to upload release assets#263
BinFlip merged 1 commit into
mainfrom
fix/release-asset-permissions

Conversation

@BinFlip

@BinFlip BinFlip commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

The v0.8.5 release published to crates.io successfully, but all three Build CLI jobs failed at the upload step with HTTP 403: Resource not accessible by integration, so no binaries are attached to that release.

The job uploads through GITHUB_TOKEN but declares no permissions block, so it inherits the default workflow permission — which is read-only here. Granting contents: write on that job alone keeps the elevated permission scoped to the step that needs it, rather than raising the default for every workflow.

Attaching the built binaries failed with "HTTP 403: Resource not
accessible by integration". The job uploads through GITHUB_TOKEN but
declares no permissions block, so it inherits the default — and the
default here is read-only.

Grant `contents: write` on that job alone rather than raising the
default for every workflow, so the elevated permission is scoped to the
step that needs it.
@BinFlip
BinFlip merged commit 9bb44e0 into main Aug 10, 2026
7 checks passed
@BinFlip
BinFlip deleted the fix/release-asset-permissions branch August 10, 2026 04:37
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