ci: declare contents:read on test-docs-builder-setup workflow#157
ci: declare contents:read on test-docs-builder-setup workflow#157arpitjain099 wants to merge 2 commits into
Conversation
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
|
Label error. Requires exactly 1 of: automation, breaking, bug, changelog:skip, chore, ci, dependencies, documentation, enhancement, feature, fix. Found: |
|
The |
|
Friendly bump on this. The PR is blocked on a maintainer applying one of the required labels ( cc @cotti / @reakaleek / @theletterf, posting since you've been on the recent merge flow. |
Adds a workflow-level
permissions: contents: readblock. The job here only checks out the repository and runs its tests / validation; no GitHub API call beyond the initial checkout is needed.CVE-2025-30066 (the March 2025
tj-actions/changed-filessupply-chain compromise) is the canonical motivation: a tampered third-party action exfiltratedGITHUB_TOKENfrom workflow logs and the leaked token retained whatever scope was issued at the workflow level. Per-workflow caps bound that runtime authority irrespective of repo or org default, give drift protection if the default ever widens, and register with OpenSSF Scorecard's Token-Permissions check (which only credits explicit per-workflow declarations).YAML validated locally with
yaml.safe_load.