Commit 33cb962
feat(ci): add gitleaks PR-gating + base toml (Phase 0.B1-fleet Wave 2) (#3)
* feat(ci): add gitleaks PR-gating + base allowlist (Phase 0.B1-fleet)
Adds a Secret Scan workflow that runs gitleaks against every PR and
push to default branch. Mirrors the canonical pattern in BfxLendingBot,
BfxPingPongBot, and the Wave-1 repos (BotEventAggregator, Knowledge-Hub,
DigiConta, blazor-shared, infra-iac).
This is Wave 2 of the Phase 0.B1-fleet rollout — the 6 repos that didn't
yet have a `gitleaks.toml`. CI-style scan (`--log-opts="--no-merges -1"`)
on current HEAD reports `no leaks found` against gitleaks default rules,
so the toml ships as a minimal scaffold (extend `paths` / add `regexes`
if findings surface).
Phase 0 of the Restart-2026-04 master plan requires zero secret-leak
findings across all fleet repos before the bot fleet restarts on Opus
4.7. Pre-PR gating catches hardcoded secrets before they merge to
master/main.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
* fix(ci): pin gitleaks version + scan PR range (Copilot review)
Addresses Copilot's 3 template-level concerns on Wave 2 PRs:
- Pin gitleaks to 8.30.1 + verify SHA256 (no latest-release scraping)
- Scan full PR commit range on pull_request (was: --log-opts -1, missed earlier commits)
- fetch-depth: 0 so the base..head range resolves
* fix(gitleaks): anchor allowlist regexes + drop .env.local (Copilot review)
- Anchor paths so '.env.example.bak' and 'docs/.env.example.md' aren't allowlisted.
- Remove .env.local — a real one with real secrets MUST trip the scan.
Use .env.example for committed samples.
* fix(ci): pin commitlint workflow actions to SHA (org ruleset)
Org ruleset enforces "all actions must be pinned to a full-length commit SHA".
- actions/checkout@v4 → @de0fac2e... (v6.0.2)
- wagoid/commitlint-github-action@v6 → @b948419d... (v6.2.1)
Surfaced as a workflow setup error blocking the gitleaks Wave 2 PR; same
fix should be applied fleet-wide to any other repo whose commitlint.yml
still carries unpinned tags.
---------
Co-authored-by: JCBauza <5790807+JCBauza@users.noreply.github.com>
Co-authored-by: cloudingenium-automation[bot] <277329096+cloudingenium-automation[bot]@users.noreply.github.com>1 parent 1e619db commit 33cb962
3 files changed
Lines changed: 87 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments