ci: declare contents:read on build-health-checkup workflow#1028
ci: declare contents:read on build-health-checkup workflow#1028arpitjain099 wants to merge 1 commit into
Conversation
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
|
|
|
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.