/ opencodehub / scripts / security / install-hooks.sh
Swadhin Biswas fix(ts): eliminate all 127 TypeScript errors · 4/21/2026
18087d6
13 lines · 313 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
cd "$ROOT_DIR"

chmod +x .githooks/pre-push scripts/security/pre-push-secret-scan.sh

git config core.hooksPath .githooks

echo "[hooks] configured core.hooksPath=.githooks"
echo "[hooks] installed pre-push secret scan guard"