14 lines
258 B
Bash
Executable File
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
|