detect-secrets

Detects and prevents secrets in code before they're committed

brewmacoslinux
Try with needOr install directly
Source

About

Enterprise friendly way of detecting and preventing secrets in code

Commands

detect-secrets

Examples

Scan current directory for secrets$ detect-secrets scan
Audit baseline file and mark false positives$ detect-secrets audit .secrets.baseline
Scan specific file for secrets$ detect-secrets scan path/to/file.py