From 006856fad769766bd0cda21d8cc296d9e3f87629 Mon Sep 17 00:00:00 2001 From: Alb3e3 <74142887+Alb3e3@users.noreply.github.com> Date: Fri, 12 Jun 2026 00:38:45 +0200 Subject: [PATCH] harden CI: add permissions and pin action SHAs 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. --- .github/workflows/fuzz.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index de14ee56f..3c0cb078a 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -1,22 +1,24 @@ name: CIFuzz on: [pull_request] +permissions: read-all + jobs: Fuzzing: runs-on: ubuntu-latest steps: - name: Build Fuzzers - uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master + uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@439b356d09b53fe1161e9fe22ac42536926983db # master with: oss-fuzz-project-name: 'wuffs' dry-run: false - name: Run Fuzzers - uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@439b356d09b53fe1161e9fe22ac42536926983db # master with: oss-fuzz-project-name: 'wuffs' fuzz-seconds: 600 dry-run: false - name: Upload Crash - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # v1 if: failure() with: name: artifacts