We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d5f4bd commit 72cef62Copy full SHA for 72cef62
.husky/pre-commit
@@ -8,5 +8,11 @@ git update-index --again
8
9
# check for secrets
10
if [ -z "$CI" ] && [ -z "$GITHUB_ACTIONS" ]; then
11
+ if ! command -v trufflehog >/dev/null 2>&1; then
12
+ echo "trufflehog' is not installed or not in your PATH."
13
+ echo "Download it from: https://github.com/trufflesecurity/trufflehog"
14
+ echo "Skipping secrets check due to missing trufflehog."
15
+ exit 1
16
+ fi
17
trufflehog git file://. --since-commit HEAD --fail
18
fi
0 commit comments