Commit bfe3f4a
committed
ci: Add workflow-level permissions to release workflow
The earlier hardening pass skipped this file because the github-release
job already declared permissions. The validate and publish jobs still
fall back to the repository default for GITHUB_TOKEN, which is write.
Adds workflow-level `contents: read`. github-release keeps its
job-level `contents: write`; validate and publish only check out code
and publish to crates.io with CARGO_REGISTRY_TOKEN.
Claude-Session: https://claude.ai/code/session_01Rg3UBFSnmKMPQLNpNKkn8d1 parent cba3405 commit bfe3f4a
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
0 commit comments