cang-ying/.githooks/pre-commit
2026-07-13 12:11:52 +08:00

5 lines
141 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo_root="$(git rev-parse --show-toplevel)"
exec python3 "$repo_root/scripts/secret_scan.py" --staged