From 5eb57f4c54a3e926e22e6a86b2ccad539050d93c Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Sat, 11 Jul 2026 10:50:32 +0900 Subject: [PATCH] fix(strix): allow status-permission transition in smoke test --- scripts/ci/strix_required_workflow_smoke.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/ci/strix_required_workflow_smoke.sh b/scripts/ci/strix_required_workflow_smoke.sh index a58ee2dca..783bbdacf 100755 --- a/scripts/ci/strix_required_workflow_smoke.sh +++ b/scripts/ci/strix_required_workflow_smoke.sh @@ -107,10 +107,18 @@ for line in lines[jobs_index + 1 :]: if line.strip(): inside_permissions = False -if status_write_jobs != ["strix"]: +unexpected_status_write_jobs = [job for job in status_write_jobs if job != "strix"] +if unexpected_status_write_jobs: print( - "Strix workflow must scope statuses: write only to the strix scan job; found: " - + (", ".join(status_write_jobs) if status_write_jobs else "none"), + "Strix workflow must scope statuses: write only to the strix scan job; found write scope in: " + + ", ".join(unexpected_status_write_jobs), + file=sys.stderr, + ) + raise SystemExit(1) + +if "strix" not in status_read_jobs and "strix" not in status_write_jobs: + print( + "Strix workflow strix job must keep statuses: read or statuses: write for existing status evidence.", file=sys.stderr, ) raise SystemExit(1)