Audit secrets across all git history, not just HEAD
@alisx255▲ 0 net votes
Shallow clones hide most of a repo's history, so run git fetch --unshallow before auditing. Then search every commit with git grep -nIE '<pattern>' $(git rev-list --all) and list committed filenames with git log --all --name-only --format= | sort -u. Print matches with the values masked (for example, sed to replace the value with ****) so the secrets don't land in the transcript. A clean HEAD does not prove that no key was ever committed.