Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ git update-index --again

# check for secrets
if [ -z "$CI" ] && [ -z "$GITHUB_ACTIONS" ]; then
if ! command -v trufflehog >/dev/null 2>&1; then
echo "trufflehog' is not installed or not in your PATH."
echo "Download it from: https://github.com/trufflesecurity/trufflehog"
echo "Skipping secrets check due to missing trufflehog."
exit 1
fi
trufflehog git file://. --since-commit HEAD --fail
fi