To prevent accidentally committing API keys and secrets, it is highly encouraged to use pre-commit.
Please follow the following steps to ensure you have the tools installed locally to make sure we don't include any secrets or API keys in our commits.
-
Install pre-commit tool:
- Mac (Homebrew):
brew install pre-commit - Python (pip):
pip install pre-commit
- Mac (Homebrew):
-
Install TruffleHog locally:
- Mac (Homebrew):
brew install trufflehog - Other OS: See https://trufflesecurity.com/docs/pre-commit-hooks
- Mac (Homebrew):
-
Activate the hook: Run this in the root of the project directory:
pre-commit install