Guard self-hosted CI from fork pull requests

This commit is contained in:
Lawrence Chen 2026-02-23 14:58:17 -08:00
parent 8cc5139441
commit f3fc880468
2 changed files with 40 additions and 0 deletions

View file

@ -7,6 +7,15 @@ on:
pull_request:
jobs:
workflow-guard-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate self-hosted runner guards
run: ./tests/test_ci_self_hosted_guard.sh
web-typecheck:
runs-on: ubuntu-latest
defaults:
@ -26,6 +35,8 @@ jobs:
run: bun tsc --noEmit
ui-tests:
# Never run self-hosted jobs for fork pull requests.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: self-hosted
concurrency:
group: self-hosted-build