feat(scan): dogfood the shipped gitleaks + semgrep gate on the maintainer repo#7
Merged
Conversation
This was referenced Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dogfood the template's
enable_scannerslayer (gitleaks + semgrep) onto the maintainer repo, closing gap #2 of the dogfooding-gap audit — the one substantive security gap. gitleaks now scans the maintainer's full commit history; semgrep mirrors the shipped SAST gate.Changes
.gitleaks.toml+.semgrep.yml(verbatim from the template),gitleaks = "8.30.1"inmise.toml, an out-of-bandjust scanrecipe, and a blockingscanjob intest-template.yml(sibling to zizmor;mise-actionSHA-pinned# v4.2.0, noGH_TOKEN,fetch-depth: 0).AGENTS.md; design + plan underdocs/superpowers/.Testing
just scanlocally: gitleaks 161 commits scanned, no leaks; semgrep exits clean.TMPDIR=… just test— full generation matrix, 70 passed (3m 23s).--persona=regular .clean on the new job; workflow YAML parses; the zizmor-version drift test passes.Notes for reviewers
.semgrepignoreexcludestests/, and there is nosrc/, so it scans 0 files today. Kept as a byte-parity mirror + forward guard (fires the moment any non-test Python lands at root) — the identical command the template runs against downstreamsrc/. Dropping it as not-applicable (like the audit did for mutmut/coverage) is a trivial reversal; flagged in the design's Out-of-scope.template/files touched → no CHANGELOG entry, no version tag.Related
docs/superpowers/plans/2026-07-01-dogfood-gap-audit.md