diff --git a/install-precommit-hook.sh b/install-precommit-hook.sh index 7a81ba6..40cb95b 100755 --- a/install-precommit-hook.sh +++ b/install-precommit-hook.sh @@ -57,7 +57,7 @@ if ! command -v kingfisher >/dev/null 2>&1; then fi git diff --cached --name-only -z | \ - xargs -0 --no-run-if-empty kingfisher scan --no-update-check + xargs -0 --no-run-if-empty kingfisher scan --only-valid --no-update-check status=$? if [[ $status -ne 0 ]]; then echo "Kingfisher detected secrets in staged files. Commit aborted." >&2