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