From 4bab78a773c81a73106da1c8feff36cb2933c203 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 21 Sep 2026 01:02:39 +0000 Subject: [PATCH] fix(ci): grant callers the permissions their reusable workflows declare --- .github/workflows/governance.yml | 4 ++++ .github/workflows/mirror.yml | 4 ++++ .github/workflows/release.yml | 2 ++ .github/workflows/scorecard.yml | 1 + .github/workflows/secret-scanner.yml | 4 ++++ .github/workflows/spark-theatre-gate.yml | 4 ++++ 6 files changed, 19 insertions(+) diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index e94bd33..a253bf0 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -32,3 +32,7 @@ permissions: jobs: governance: uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@571cc734cd69fb846032ec77a662aa8ee4fc32cd + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 3c3aee6..f474846 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -13,3 +13,7 @@ jobs: mirror: uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@571cc734cd69fb846032ec77a662aa8ee4fc32cd secrets: inherit + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 494812c..d848f7e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -169,6 +169,8 @@ jobs: name: SLSA Provenance needs: [build] permissions: + contents: read + security-events: write actions: read id-token: write contents: write diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index e2e25f7..d6537fd 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -12,6 +12,7 @@ jobs: analysis: uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@571cc734cd69fb846032ec77a662aa8ee4fc32cd permissions: + actions: read contents: read security-events: write id-token: write diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index b5f13f3..e5db5c8 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -17,3 +17,7 @@ jobs: scan: uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@571cc734cd69fb846032ec77a662aa8ee4fc32cd secrets: inherit + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/spark-theatre-gate.yml b/.github/workflows/spark-theatre-gate.yml index d61f518..430b69c 100644 --- a/.github/workflows/spark-theatre-gate.yml +++ b/.github/workflows/spark-theatre-gate.yml @@ -19,3 +19,7 @@ jobs: with: paths: "." enforce_zero_contract: false + permissions: + actions: read + contents: read + security-events: write