zeroclaw/.githooks/pre-commit
Chummy 23db125971 docs(security): refine local secret management guidance
Supersedes: #406

Co-authored-by: Gabriel Nahum <gnahum12345@users.noreply.github.com>
2026-02-17 18:39:13 +08:00

8 lines
199 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
if command -v gitleaks >/dev/null 2>&1; then
gitleaks protect --staged --redact
else
echo "warning: gitleaks not found; skipping staged secret scan" >&2
fi