From 8b796cda2c05e2e799f472e14018d0bc52ef0d9c Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Thu, 9 Jul 2026 07:29:47 +0100 Subject: [PATCH] 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 4d88ed14..621e603a 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -15,5 +15,9 @@ permissions: jobs: scan: + permissions: + contents: read + pull-requests: write + actions: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@d7c22711e830e1f383846472f6e9b99debdb201e - secrets: inherit + secrets: inherit \ No newline at end of file