diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 4cc196e..6d713cb 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -29,7 +29,7 @@ fi # Install: https://github.com/gitleaks/gitleaks if command -v gitleaks > /dev/null 2>&1; then - if ! gitleaks detect --staged --no-banner --redact; then + if ! gitleaks git --staged --no-banner --redact; then echo "" echo "ERROR: gitleaks detected potential secrets in staged files." echo "Review the findings above before committing."