wuffs icon indicating copy to clipboard operation
wuffs copied to clipboard

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

Open Alb3e3 opened this issue 5 months ago • 0 comments

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.

Alb3e3 avatar Jun 11 '26 22:06 Alb3e3