From 6135db3026cd6890a21b0c5bec5276815f569633 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 21 Sep 2026 01:00:08 +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/rust-ci.yml | 4 ++++ .github/workflows/scorecard.yml | 1 + .github/workflows/secret-scanner.yml | 2 ++ 5 files changed, 15 insertions(+) diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index 1ec45aa..af4ad3b 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -17,3 +17,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 a3fd0de..26cb49b 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/rust-ci.yml b/.github/workflows/rust-ci.yml index 5dd948c..a50fe5c 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@571cc734cd69fb846032ec77a662aa8ee4fc32cd + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 47ccc7f..c3e32a1 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -16,6 +16,7 @@ jobs: scorecard: uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@d7c22711e830e1f383846472f6e9b99debdb201e 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 ded7814..70acf49 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -18,6 +18,8 @@ permissions: jobs: scan: permissions: + actions: read + security-events: write contents: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@db12a6ad3ef9076d5f7bdcf98d7d15cf8547555a secrets: inherit