16 lines
308 B
Bash
Executable File
16 lines
308 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Pre-commit hook wrapper for secret leak detection.
|
|
#
|
|
# Installation:
|
|
# git config core.hooksPath .githooks
|
|
#
|
|
# To bypass temporarily:
|
|
# git commit --no-verify
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
exec python3 "${SCRIPT_DIR}/pre-commit.py" "$@"
|