Interview Prep/Git & GitHub/Security: secrets, signing, access and supply chain

How do you scan a repo's full history for secrets?

IntermediateProductionSecurity: secrets, signing, access and supply chain
Answer

Run a history-aware scanner, since scanning only HEAD misses removed secrets. Triage by verified-live credentials first.

gitleaks detect --source . --log-opts="--all" --report-format sarif --report-path gl.sarif
trufflehog git file://. --only-verified
All Git & GitHub questions Roadmap: Git & GitHub

More on Security: secrets, signing, access and supply chain