Self-hosted runners
OpenReview is runner-agnostic: it's a plain Node action, so runs-on: is entirely
your choice. No code changes needed — point the job at your machines.
Minimal example (self-hosted label)
jobs:
review:
runs-on: [self-hosted, linux] # your runner group / labels
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: sankara-sabapathy/openreview@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
Same job works on ARC (Actions Runner Controller) scale sets — use your
scale-set name as the label:
runs-on: arc-openreview-x64
What the runner needs
- Egress to your providers'
base_urls plusapi.github.com(diff, comments, checks) andgithub.com(checkout). Nothing else phones home. - Toolchain: the action runs on
node24(action.yml), so the runner just needs to be recent enough to executenode24actions — keep self-hosted runners updated. No Python, no Docker, no extra toolchain: context indexing is pure TypeScript in the bundle. - Sizing: agents fan out per review bounded by
defaults.max_concurrency(default 4); a 2-CPU runner is plenty. The billable cost driver is provider tokens, not compute.
Secrets hygiene (read this before fork PRs)
Secrets aren't exposed to fork PRs by default — that's GitHub protecting you. On persistent self-hosted runners the risk is higher (a malicious PR could read leftover workspace state), so:
- Never run untrusted fork diffs on persistent self-hosted runners.
- Prefer
pull_request_targetwith an explicit pinned checkout, or gate reviews behind a maintainer-applied label, or use ephemeral (one-job) runners.
Fork PRs and your provider budget (issue #58b)
pull_request events from forks run the workflow with your BYOK secrets
available to the job (same-repo PRs; forks get no secrets by default, in
which case agents skip with a no-key warning instead of spending). If you
want belt and suspenders — never run the reviewer on a fork's code, only on
maintainer branches — add an allowlist recipe to the job:
if: >-
github.event.pull_request.head.repo.full_name == github.repository
Combine it with the existing && conditions in the reference workflow
(.github/workflows/ai-review.yml). Fork PRs then skip the job entirely:
no diff fetch, no provider spend. The in-action association gate stays as
the second layer (it cannot be misconfigured out of existence the way a
workflow if: can).
Verified matrix: ubuntu-latest ✅ (dogfood, every PR). Self-hosted/ARC: config
compatible, awaiting verification on a contributor runner — report yours in
issue #24.