From 3e7804ad5d3eae842ac08dfa58cfcc1f3779d82e Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Thu, 9 Jul 2026 07:40:27 +0100 Subject: [PATCH 1/2] ci: grant Secret Scanner caller the reusable's job permissions The standards secret-scanner reusable's gitleaks job declares pull-requests:write + actions:read (PR summary comment via the Issues/PR API). A called workflow is capped at the caller's grant, so without these at the calling job the run dies at startup (0s startup_failure, estate-wide). Caller-side fix; bumping the pin never fixes it. Ref: hyperpolymath/standards#472. --- .github/workflows/secret-scanner.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index d00624b..59d0a9c 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -15,6 +15,10 @@ permissions: jobs: scan: + permissions: + contents: read + pull-requests: write + actions: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236 timeout-minutes: 10 - secrets: inherit + secrets: inherit \ No newline at end of file From 29d10d7565ea3261b3e651a025ada16df443bd45 Mon Sep 17 00:00:00 2001 From: gitbot-fleet Date: Thu, 9 Jul 2026 09:35:28 +0100 Subject: [PATCH 2/2] ci: remove secrets inherit to fix least privilege violation --- .github/workflows/secret-scanner.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index 59d0a9c..4db6a5a 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -20,5 +20,4 @@ jobs: pull-requests: write actions: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236 - timeout-minutes: 10 - secrets: inherit \ No newline at end of file + timeout-minutes: 10 \ No newline at end of file