From 7983cacd2f3a99cf5e053e37e8231f8e5501d882 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Mon, 28 Jul 2025 11:05:15 -0700 Subject: [PATCH] updated precommit hook to only block on valid secrets --- install-precommit-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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