learning_ai_clock/.husky/pre-push
2026-03-27 23:03:33 -07:00

14 lines
258 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 tracked files for secrets before push..."
bash scripts/secret-scan-repo.sh