mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
Run secondary-judge adapter from trusted staged copy
The dual-judge re-score invoked node eng/vally-adapter/adapt.mjs from the repo checkout, which a fork PR could tamper with. Route it through the trusted staged copy (\/trusted-validator-src/...) like the primary adapt.mjs call, restoring the fork-checkout trust boundary that test_fork_checkout_is_blocked_and_adapter_code_is_trusted enforces. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: e23e5efe-713f-4898-a158-8970f70fdcaf
This commit is contained in:
@@ -802,7 +802,7 @@ jobs:
|
||||
if [ -n "$JUDGE2_MODEL" ] && [ "$JUDGE2_MODEL" != "$JUDGE_MODEL" ]; then
|
||||
RESULTS_DIR2="${RESULTS_DIR/\/vally\//\/vally-crossjudge\/}"
|
||||
echo "Re-scoring $PLUGIN transcripts with secondary judge $JUDGE2_MODEL -> $RESULTS_DIR2"
|
||||
node eng/vally-adapter/adapt.mjs \
|
||||
node "$RUNNER_TEMP/trusted-validator-src/eng/vally-adapter/adapt.mjs" \
|
||||
--experiment-dir "$RUN_DIR" \
|
||||
--output-root "$RESULTS_DIR2" \
|
||||
--vally "vally" \
|
||||
|
||||
Reference in New Issue
Block a user