Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions scripts/ci/strix_required_workflow_smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading