fix(release): bind reusable evidence verifier source (#123115)

This commit is contained in:
Vincent Koc
2026-08-13 18:19:28 +08:00
committed by GitHub
parent 8d46e23224
commit 9794a4a49c
2 changed files with 68 additions and 10 deletions
@@ -191,9 +191,27 @@ for ((index = 0; index < run_count; index += 1)); do
--validate-run "$run_id" \
--repo "$REPO" \
--trusted-workflow-ref main \
--verifier-source-sha "$VERIFIER_WORKFLOW_SHA" \
--verifier-source-file "$VALIDATOR" \
--json
)"; then
echo "[evidence-reuse] run ${run_id}: shared evidence validator rejected the run; skipping" >&2
validator_error="$(
jq -r '
if (.error | type) == "string" then
.error
| gsub("[\\r\\n\\t ]+"; " ")
| gsub("^ +| +$"; "")
| if length > 500 then .[0:497] + "..." else . end
else
empty
end
' <<< "$validation_record" 2>/dev/null || true
)"
if [[ -n "$validator_error" ]]; then
echo "[evidence-reuse] run ${run_id}: shared evidence validator rejected the run: ${validator_error}; skipping" >&2
else
echo "[evidence-reuse] run ${run_id}: shared evidence validator rejected the run; skipping" >&2
fi
continue
fi
if ! jq -e \