Files
hermes-agent/.githooks/pre-commit
Hermes Agent af9db00d24
Some checks failed
Docker Build and Publish / build-and-push (push) Has been cancelled
Nix / nix (macos-latest) (push) Has been cancelled
Nix / nix (ubuntu-latest) (push) Has been cancelled
Tests / test (push) Has been cancelled
security(pre-commit): add secret leak scanner for prompts and credentials (#384)
2026-04-05 16:15:26 +00:00

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" "$@"