wuffs
wuffs copied to clipboard
ci: add permissions and pin action SHAs in fuzz.yml
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-allat 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.