Adopting a secret scanner in a legacy repo: 10 minutes with baseline mode
python
dev.to
For teams with years of history that want a real pre-merge gate, not another red job nobody reads. Commands and exit codes below were run locally; demo credentials are random values generated at runtime and all output is redacted. Why secret scanners die in legacy repos A greenfield repo is easy: the first scan is clean. A legacy repo is not. You add gitleaks, trufflehog or leakpulse to CI and the first run returns dozens of HIGH findings: fake AWS keys in three-year-old fixture