mirror of
https://github.com/Sea-Haven-Industries/security-review.git
synced 2026-10-03 03:23:26 +00:00
fix(hooks): point default review.sh path at the standalone security-review repo
The pre-push/pre-commit hooks defaulted SH_REVIEW_SH to the orchestrator checkout (orchestrator/security-review/review.sh). With the gate re-homed here, default to $HOME/Documents/repositories/security-review/review.sh so push-time gating does not lapse when orchestrator is deprecated. Live global hook re-pointed to match.
This commit is contained in:
parent
4c88c01f7b
commit
3cf9bb7652
2 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0
|
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0
|
||||||
[ -f "$REPO_ROOT/.security-review-skip" ] && exit 0
|
[ -f "$REPO_ROOT/.security-review-skip" ] && exit 0
|
||||||
REVIEW_SH="${SH_REVIEW_SH:-$HOME/Documents/repositories/orchestrator/security-review/review.sh}"
|
REVIEW_SH="${SH_REVIEW_SH:-$HOME/Documents/repositories/security-review/review.sh}"
|
||||||
if [ ! -f "$REVIEW_SH" ]; then
|
if [ ! -f "$REVIEW_SH" ]; then
|
||||||
echo "security-review: review.sh not found at $REVIEW_SH (set SH_REVIEW_SH to override) — skipping" >&2
|
echo "security-review: review.sh not found at $REVIEW_SH (set SH_REVIEW_SH to override) — skipping" >&2
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0
|
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null)" || exit 0
|
||||||
[ -f "$REPO_ROOT/.security-review-skip" ] && exit 0
|
[ -f "$REPO_ROOT/.security-review-skip" ] && exit 0
|
||||||
REVIEW_SH="${SH_REVIEW_SH:-$HOME/Documents/repositories/orchestrator/security-review/review.sh}"
|
REVIEW_SH="${SH_REVIEW_SH:-$HOME/Documents/repositories/security-review/review.sh}"
|
||||||
if [ -f "$REVIEW_SH" ]; then
|
if [ -f "$REVIEW_SH" ]; then
|
||||||
SUP=()
|
SUP=()
|
||||||
# Suppressions: prefer a MACHINE-LEVEL file kept out of repo history
|
# Suppressions: prefer a MACHINE-LEVEL file kept out of repo history
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue