ci: scan only the checked-out branch history for leaks
gitleaks git defaults to --all, so a shallow branch CI clone also scanned other branches and misattributed their commit-bound ignores. Drop the plan-3 fixture ignore added for that reason; plan-3 owns its own scan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+1
−3
.gitleaksignore+0 −2Makefile+1 −1
CI failed — run details
Intent
diff --git a/.gitleaksignore b/.gitleaksignore| index bc86d81a..76305197 100644 |
| --- a/.gitleaksignore |
| +++ b/.gitleaksignore |
| @@ -1,5 +1,3 @@ |
| # Expired, randomly generated capability from an offline rejection-test mutation. |
| # The disposable fixture was removed; this is not a provider or service key. |
| 64da7c8b90dcf3134dc1afa08b169560c880d038:docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md:generic-api-key:15868 |
| -# Literal plan3-fixture instance key in an offline test router, not a service key. |
| -be8095ed7616ca7d571295398abb63d79815f06d:internal/plan3test/harness_test.go:generic-api-key:51 |
diff --git a/Makefile b/Makefile| index 7ce5ac0b..c6b1e71a 100644 |
| --- a/Makefile |
| +++ b/Makefile |
| @@ -128,7 +128,7 @@ govulncheck: |
| GITLEAKS := github.com/zricethezav/gitleaks/v8@v8.30.1 |
| gitleaks: |
| @if [ "$$(git rev-parse --is-inside-work-tree 2>/dev/null)" = true ] && [ -z "$$(git rev-parse --show-prefix)" ]; then \ |
| - go run $(GITLEAKS) git --no-banner --redact .; \ |
| + go run $(GITLEAKS) git --no-banner --redact --log-opts=HEAD .; \ |
| else \ |
| echo "gitleaks: this directory is not the root of a git repository, so there is nothing committed to scan"; \ |
| fi |