Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep untrusted PRs off persistent self-hosted runners

For pull_request events targeting main, this job now checks out and runs code from the PR on a persistent self-hosted Linux runner. In a public/contributor PR context, that gives arbitrary PR code access to the runner host, its caches, and anything left behind for later jobs; this is especially risky because release.yml also uses the same generic self-hosted label for jobs with contents: write. Keep PR-triggered Linux jobs on GitHub-hosted runners, or restrict self-hosted execution to trusted push/tag events or an ephemeral isolated runner pool.

Useful? React with 👍 / 👎.

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

Expand All @@ -40,7 +40,7 @@ jobs:

test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
needs: lint
strategy:
matrix:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:

frontend:
name: Frontend (build + test)
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
needs: lint

steps:
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
# Playwright E2E coverage before it merges. Remove the push branch
# filter after release/v0.9.0 merges to main.
name: Playwright E2E
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
if: |
(github.event_name == 'pull_request' && github.base_ref == 'main') ||
(github.event_name == 'push' && github.ref == 'refs/heads/release/v0.9.0')
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/real-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ on:
jobs:
real-e2e:
name: Real-model agent E2E
runs-on: ubuntu-latest

runs-on: [self-hosted, linux, x64]
# Skip pull_request events unless the `run-real-e2e` label is present.
# cron + tag pushes always run.
if: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Tags can be pushed against any commit; this gate ensures only green commits ship.
verify-ci:
name: Verify CI passed on tagged commit
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:

release:
name: Create GitHub release
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, x64]
needs: [build-windows, build-macos]

steps:
Expand Down
Loading