From 902240d9e2c37b8d0bebeb71e08858f77cdc5fe0 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 21 Sep 2026 01:01:13 +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 ++++ 5 files changed, 15 insertions(+) diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index 0066b3f..67df8dc 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -16,3 +16,7 @@ permissions: jobs: governance: uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@8f2ee50841e216cd8c192eeb68953118190f105c + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 9087230..4566897 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -21,3 +21,7 @@ jobs: DISROOT_SSH_KEY: ${{ secrets.DISROOT_SSH_KEY }} GITEA_SSH_KEY: ${{ secrets.GITEA_SSH_KEY }} RADICLE_KEY: ${{ secrets.RADICLE_KEY }} + permissions: + actions: read + contents: read + security-events: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e223d1d..a2ef8b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -142,6 +142,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 1f2933a..81a24a2 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -15,6 +15,7 @@ jobs: scorecard: uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@8f2ee50841e216cd8c192eeb68953118190f105c 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 e2ea865..fb0f5eb 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -22,3 +22,7 @@ jobs: scan: uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@8f2ee50841e216cd8c192eeb68953118190f105c secrets: inherit + permissions: + actions: read + contents: read + security-events: write