From cd99722567c10747ffa4c2a6db3994ccd2420d36 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:19 +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 | 2 ++ 5 files changed, 13 insertions(+) diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index 8719e6b..3bf11c8 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -18,3 +18,7 @@ permissions: jobs: governance: uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@6b38eb50104901e2fec80f9455a972bc3eced813 + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 7c78083..b4372a2 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -14,3 +14,7 @@ jobs: mirror: uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@84355587cb2a1f86e6882de83514a32db2646e7a secrets: inherit + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ae3401..a1cf8ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,6 +132,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 5d212f3..9709a58 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -17,6 +17,7 @@ jobs: scorecard: uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@84355587cb2a1f86e6882de83514a32db2646e7a 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 3cd9ae5..e5ae8e4 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -16,6 +16,8 @@ permissions: jobs: scan: permissions: + actions: read + security-events: write contents: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@84355587cb2a1f86e6882de83514a32db2646e7a secrets: inherit