From 57d342dff2a7fb5b5d857cfd0fb3902b995bb399 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Thu, 9 Jul 2026 07:50: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 cbd1def..8a94555 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -11,6 +11,10 @@ permissions: contents: read jobs: scan: + permissions: + contents: read + pull-requests: write + actions: read uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@09e7023d24682621bea4e11965a1ef5e87d86c3b timeout-minutes: 10 secrets: inherit @@ -24,4 +28,4 @@ jobs: - name: TruffleHog Secret Scan uses: trufflesecurity/trufflehog@00155c9dc586f34d189adc83d3ac2698c2ec551f # v3.95.8 with: - extra_args: --only-verified --fail + extra_args: --only-verified --fail \ No newline at end of file