Files
kilo-cv/.husky/pre-commit
Tuan-Dat Tran c240aa3641
Some checks failed
Release / Release (push) Failing after 6m48s
Release / Build & Push Docker Image (push) Has been skipped
fix(ci): use POSIX-compatible syntax in pre-commit hook
2026-02-23 19:48:11 +01:00

14 lines
300 B
Plaintext
Executable File

npm run lint
# Gitleaks secret scanning
if command -v gitleaks > /dev/null 2>&1; then
gitleaks protect --verbose --staged
if [ $? -eq 1 ]; then
echo ""
echo "❌ Secrets detected in staged files!"
echo "Please remove sensitive data before committing."
echo ""
exit 1
fi
fi