Skip to content

Commit f2b896b

Browse files
igerberclaude
andcommitted
chore(ci): declare workflow-level permissions on publish.yml
Add `permissions: contents: read` at workflow level so the four build jobs (build-linux, build-macos-arm, build-windows, build-sdist) have explicit GITHUB_TOKEN scoping instead of inheriting from repo defaults. The publish job's per-job `permissions: id-token: write` block remains unchanged. Per-job permissions replace (not merge with) workflow-level, so that job retains only id-token: write (it doesn't checkout, so it doesn't need contents access). Clears 4 CodeQL `actions/missing-workflow-permissions` warnings without changing runtime token scope (repo default was already `read`). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 81b9430 commit f2b896b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
# Build wheels on Linux using manylinux containers
912
build-linux:

0 commit comments

Comments
 (0)