Skip to content

Commit bfe3f4a

Browse files
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_01Rg3UBFSnmKMPQLNpNKkn8d
1 parent cba3405 commit bfe3f4a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
env:
99
CARGO_TERM_COLOR: always
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
validate:
1316
name: Validate Release

0 commit comments

Comments
 (0)