mirror of
https://github.com/Comfy-Org/github-workflows.git
synced 2026-11-05 00:17:37 +00:00
[PR #341] [MERGED] feat(cursor-review): runs_on input to route the credential-free jobs to a caller's runners #343
Labels
No labels
cursor-review-catalog-drift
groom
groom
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/github-workflows#343
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/github-workflows/pull/341
Author: @mattmillerai
Created: 10/6/2026
Status: ✅ Merged
Merged: 10/6/2026
Merged by: @mattmillerai
Base:
main← Head:matt/cursor-review-runner-input📝 Commits (2)
d093062feat(cursor-review): runner input to choose runs-on for every job74c0c83fix(cursor-review): route only credential-free jobs to the caller's runner pool📊 Changes
5 files changed (+99 additions, -26 deletions)
View changed files
📝
.github/cursor-review/README.md(+2 -1)📝
.github/cursor-review/tests/test_workflow_job_isolation.py(+25 -0)📝
.github/workflows/cursor-review.yml(+70 -24)📝
README.md(+1 -1)📝
docs/callers/cursor-review.md(+1 -0)📄 Description
ELI-5
Adds a setting that picks which machines run the heavy parts of the Cursor review. Nothing changes unless a repo sets it: the default is still GitHub's hosted runners. Jobs that hold write credentials always stay on GitHub's runners.
Changes
runs_on. It is JSON-encoded, default'"ubuntu-latest"', and has the same shape ascursor-review-auto-label.yml'sruns_on, so one repo variable can feed both. An empty value falls back to the default.diff-size,preflight, thereviewpanel andconsolidate. They useruns-on: ${{ fromJSON(inputs.runs_on || '"ubuntu-latest"') }}. The gate, ledger, blocking gate, Slack notices, and every job that mints the App token or holdspull-requests: writestay hard-pinned toubuntu-latest. A new isolation test pins that split.$HOME), carry no cloud identity or token, and block private networks and the metadata server. The image must be linux/x64 with bash, git, curl, jq, python3, gh, tar and GNU coreutils.workflows_refguard comments, all changed together, and the--sandboxrationale now account for a caller pool.Testing
check_workflow_pins.py, the org-repo-literal lint and the agents-md lint pass.post-reviewtoruns_onfails the new isolation test.ubuntu-latest.Provenance
Authored by: agent-work loop
Verified:
runs_on(mutation check)Deviations:
runner→runs_on(JSON, matching the auto-label input) and scoped to the four credential-free jobs instead of all 12job.workflow_shaguard branch still warns rather than fails: GitHub's 30-day runner-update rule makes it unreachable in practice🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.