Commit f2b896b
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
0 commit comments