ggshield

Scan code for secrets and sensitive data before committing.

brewmacoslinux
Try with needOr install directly
Source

About

Scanner for secrets and sensitive data in code

Commands

ggshield

Examples

scan current directory for leaked secrets and api keys$ ggshield secret scan path .
check staged files in git before committing$ ggshield secret scan staged
find secrets in entire git repository history$ ggshield secret scan repo .
install pre-commit hook to automatically scan before git commit$ ggshield install --hook-type pre-commit
scan specific file for passwords and tokens$ ggshield secret scan path myfile.py