Skip to content

ci: add permissions and pin action SHAs in fuzz.yml#174

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

ci: add permissions and pin action SHAs in fuzz.yml#174
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

The fuzz.yml CIFuzz workflow is missing a top-level permissions declaration and references three actions by mutable tags/branch names, which are supply-chain risk vectors.

Changes:

  • Add permissions: read-all at the workflow level (least-privilege default)
  • Pin google/oss-fuzz/.../build_fuzzers@master → full commit SHA
  • Pin google/oss-fuzz/.../run_fuzzers@master → full commit SHA
  • Pin actions/upload-artifact@v1 → full commit SHA

Mutable references (@master, @v1) allow a compromised upstream action to run arbitrary code in your CI. Pinning to a commit SHA ensures only the audited version runs, regardless of upstream changes.

This patch is consistent with Google's own guidance on workflow security.

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