File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ jobs:
338338 needs : filter-jobs
339339 if : needs.filter-jobs.outputs.zizmor == 'true'
340340 permissions :
341- security-events : write
341+ security-events : write # needed by `codeql-action/upload-sarif` to upload zizmor results to GitHub code scanning
342342 steps :
343343 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
344344 with :
Original file line number Diff line number Diff line change 1717 runs-on : ubuntu-24.04
1818
1919 permissions :
20- id-token : write
20+ id-token : write # needed by `crates-io-auth-action` to mint an OIDC token for Trusted Publishing
2121
2222 steps :
2323 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Original file line number Diff line number Diff line change 1313 schedule :
1414 - cron : " 42 * * * *"
1515
16- permissions :
17- contents : write
16+ permissions : {}
1817
1918concurrency :
2019 group : update-cdn-ip-ranges
@@ -27,12 +26,15 @@ jobs:
2726 run :
2827 runs-on : ubuntu-latest
2928 if : ${{ github.repository_owner == 'rust-lang' }}
29+ permissions :
30+ contents : write # needed to `git push` the updated CDN IP ranges back to the `main` branch
31+
3032 steps :
3133 - uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
3234 id : app-token
3335 with :
3436 app-id : ${{ vars.WORKFLOWS_CRATES_IO_APP_ID }}
35- private-key : ${{ secrets.WORKFLOWS_CRATES_IO_PRIVATE_KEY }}
37+ private-key : ${{ secrets.WORKFLOWS_CRATES_IO_PRIVATE_KEY }} # zizmor: ignore[secrets-outside-env] repository write access is already the effective boundary; an environment adds no meaningful protection
3638
3739 - name : Get GitHub App User ID
3840 id : get-user-id
You can’t perform that action at this time.
0 commit comments