Block secrets from leaking
1 min
What's better than cleaning up leaked secrets? Blocking them from leaking in the first place, of course! TruffleHog offers two ways of preventing secrets from leaking in Git:
graph TD
A{Is the git server self-hosted?}
A -->|Yes| B[Prereceive hooks block secrets from being accepted at the git server]
A -->|No| C{Apply precommit hooks with TruffleHog}
C --> D[Prevent secrets from being pushed to the git server]
B --> E[End]
D --> E[End]