fix: harden review and verifier governance
This commit is contained in:
12
scripts/review/current_row_revocation_guard.sh
Executable file
12
scripts/review/current_row_revocation_guard.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROW_FILE="${1:?row file required}"
|
||||
ROW_CONTENT="$(cat "$ROW_FILE")"
|
||||
|
||||
if [[ "$ROW_CONTENT" == *'✅ 已修复'* || "$ROW_CONTENT" == *'✅ 已完成'* || "$ROW_CONTENT" == *'✅ 已恢复'* ]]; then
|
||||
echo "resolved current row should be revoked from current table" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "CURRENT_ROW_REVOCATION_GUARD: PASS"
|
||||
Reference in New Issue
Block a user