From 517d7e69364df7d96e551064cf0ba7a4ce21ea06 Mon Sep 17 00:00:00 2001 From: Nicolas CHAUVIN Date: Sun, 9 Aug 2026 21:32:40 +0200 Subject: [PATCH] fix(ci): use gitleaks git --staged in the pre-commit hook --- .githooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."