Files
kuekhaoyang 3771b63332 feat: add self-contained strict verification chain
Keep every post-59948b5 change inside verification/. The verifier owns its npm working directory and sanitized Docker context, so no release metadata or root Docker configuration is modified.
2026-08-02 06:11:13 +08:00

23 lines
510 B
Bash
Executable File

#!/bin/sh
set -eu
verify_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
repo_dir=$(CDPATH= cd -- "$verify_dir/.." && pwd)
if ! command -v node >/dev/null 2>&1; then
printf '%s\n' 'ERROR: Node.js is required.' >&2
exit 127
fi
if ! command -v npm >/dev/null 2>&1; then
printf '%s\n' 'ERROR: npm is required.' >&2
exit 127
fi
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
(
cd "$verify_dir"
npm ci --no-audit --no-fund --ignore-scripts
)
exec node "$verify_dir/src/main.mjs" --root "$repo_dir" "$@"