Skip to content

ci: add permissions and pin action SHAs (22 workflows)#455

Open
Alb3e3 wants to merge 1 commit into
google:mainfrom
Alb3e3:harden-ci-permissions-sha-pins
Open

ci: add permissions and pin action SHAs (22 workflows)#455
Alb3e3 wants to merge 1 commit into
google:mainfrom
Alb3e3:harden-ci-permissions-sha-pins

Conversation

@Alb3e3

@Alb3e3 Alb3e3 commented Jun 11, 2026

Copy link
Copy Markdown

Summary

CI workflows are missing top-level `permissions` declarations and reference actions by mutable tags/branch names — both are supply-chain risk vectors.

Changes:

  • Add `permissions: read-all` at the workflow level (least-privilege default for all jobs)
  • Pin all third-party action references to full commit SHAs

Mutable action references (`@v4`, `@master`, etc.) allow a compromised upstream to inject arbitrary code into your CI. Pinning to a commit SHA ensures only the audited revision runs regardless of upstream changes.

Add `permissions: read-all` at the workflow level to enforce least-privilege
for all jobs, and pin all third-party action references to full commit SHAs
to prevent supply-chain attacks via mutable version tags or branch names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant