Skip to content

Commit 596b402

Browse files
fix(ci): add contents:write permission to release crates job (#77)
## Summary - The `release` job in `release-crates.yml` sets job-level `permissions` with only `id-token: write`, which **overrides** the workflow-level permissions entirely (including `contents: write`) - This caused release-plz to fail with `403 Forbidden` when trying to create git tags via `https://api.github.com/repos/Devolutions/cadeau/git/tags` - Adds `contents: write` to the release job's permissions so tags can be created ## Test plan - [ ] Re-run the "Release crates" workflow after merge and verify the git tag is created successfully 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 31163bc commit 596b402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release-crates.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
permissions:
4545
id-token: write
46+
contents: write
4647

4748
steps:
4849
- name: Checkout repository

0 commit comments

Comments
 (0)