learning_ai_notes/.husky/pre-commit
2026-03-27 23:07:30 -07:00

14 lines
249 B
Bash
Executable File

#!/usr/bin/env sh
ROOT="$(git rev-parse --show-toplevel 2>/dev/null)"
if [ -n "$ROOT" ]; then
cd "$ROOT" || exit 1
fi
if [ "$HUSKY" = "0" ]; then
exit 0
fi
echo "🔐 Scanning staged changes for secrets..."
bash scripts/secret-scan-staged.sh