Skip to content

Commit 85cbf05

Browse files
chore(ci): replace secret-scanner.yml with reusable wrapper (#23)
## Summary Replaces this repo's `secret-scanner.yml` (~75-116 lines) with a thin ~14-line wrapper calling `hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@3e4bd4c93911750727e2e4c66dff859e00079da0` (merged via standards#190). ## Security debt closed The `shell-secrets` job (added to the canonical 2026-05-21 in direct response to the live Cloudflare API token leak via `avow-protocol/deploy-repos.sh` — a leak both `trufflehog --only-verified` and default `gitleaks` missed) was carried by 0 of 16 sampled estate copies. This PR brings that guardrail to this repo. ## Why now Estate audit: 281 `secret-scanner.yml` deployments / 54 unique SHAs / 19% true drift. Drift is pin churn + whitespace; feature variance is near-zero. Converging behind the reusable means the next post-incident guardrail update propagates via one SHA bump. `secrets: inherit` flows `GITHUB_TOKEN` through implicitly so the `gitleaks-action` step doesn't fall back to anonymous (rate-limited) mode. Part of estate-wide convergence campaign 2026-05-26 (standards#199 / #190).
1 parent c248b9d commit 85cbf05

1 file changed

Lines changed: 3 additions & 27 deletions

File tree

.github/workflows/secret-scanner.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ on:
66
push:
77
branches: [main]
88

9-
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
10-
# updates do not pile up queued runs against the shared account-wide
11-
# Actions concurrency pool. Applied only to read-only check workflows
12-
# (no publish/mutation), so cancelling a superseded run is always safe.
139
concurrency:
1410
group: ${{ github.workflow }}-${{ github.ref }}
1511
cancel-in-progress: true
@@ -18,26 +14,6 @@ permissions:
1814
contents: read
1915

2016
jobs:
21-
trufflehog:
22-
runs-on: ubuntu-latest
23-
steps:
24-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25-
with:
26-
fetch-depth: 0
27-
28-
- name: TruffleHog Secret Scan
29-
uses: trufflesecurity/trufflehog@37b77001d0174ebec2fcca2bd83ff83a6d45a3ab # v3
30-
with:
31-
extra_args: --only-verified
32-
33-
gitleaks:
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
37-
with:
38-
fetch-depth: 0
39-
40-
- name: Gitleaks Secret Scan
41-
uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
scan:
18+
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@3e4bd4c93911750727e2e4c66dff859e00079da0
19+
secrets: inherit

0 commit comments

Comments
 (0)