From bdfaa7caf157454ab7f045986220d5d5ce5aac37 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:25 +0000 Subject: [PATCH] fix(ci): grant callers the permissions their reusable workflows declare --- .github/workflows/governance.yml | 4 ++++ .github/workflows/hypatia-scan.yml | 4 ++++ .github/workflows/mirror.yml | 4 ++++ .github/workflows/release.yml | 2 ++ .github/workflows/rust-ci.yml | 4 ++++ .github/workflows/scorecard.yml | 5 ++++- .github/workflows/secret-scanner.yml | 4 ++++ 7 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index d8c88d3..cca3758 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -14,3 +14,7 @@ permissions: jobs: governance: uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9 + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/hypatia-scan.yml b/.github/workflows/hypatia-scan.yml index 6699de9..a04c611 100644 --- a/.github/workflows/hypatia-scan.yml +++ b/.github/workflows/hypatia-scan.yml @@ -17,3 +17,7 @@ permissions: jobs: hypatia: uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9 + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 81e9903..bcb06e6 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@d135b05bfc647d0c0fbfedc7e80f37ea50f49236 secrets: inherit + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a806617..6d918b8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -116,6 +116,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/rust-ci.yml b/.github/workflows/rust-ci.yml index c60e60a..99c0db0 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -15,3 +15,7 @@ permissions: jobs: rust-ci: uses: hyperpolymath/standards/.github/workflows/rust-ci-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236 + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 85b16ab..52d0dcf 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -11,4 +11,7 @@ permissions: jobs: scorecard: - uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@d7c22711e830e1f383846472f6e9b99debdb201e \ No newline at end of file + uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@d7c22711e830e1f383846472f6e9b99debdb201e permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index d713d06..c80a9ce 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@d135b05bfc647d0c0fbfedc7e80f37ea50f49236 secrets: inherit + permissions: + actions: read + contents: read + security-events: write