// Description
leakcheck is a tool made with golang that prevents committing secrets to your git repository. It uses a pre-commit git hook to scan staged changes for secrets, passwords, or API keys when you run git commit. If it finds anything, it exits with code 1 and blocks the commit. leakcheck uses entropy, regex, length, and keyword detection.
// Installation
After initializing your git repository, run:
go install github.com/traceback-afk/leakcheck/cmd/leakcheck@latest
// Usage
Install the pre-commit hook:
leakcheck --install-hook
Now leakcheck runs automatically on every commit.