From 9ffcf1f0a0ab6b449c6a4325409149371fc9933f Mon Sep 17 00:00:00 2001 From: Tran Duc Anh Dang Date: Sat, 14 Nov 2026 16:42:37 +1100 Subject: [PATCH] ci: say the fork check is not a security boundary Comment only. CI_RUNNER=local is safe only once the repository is private. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80237d8c..da4575de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,10 @@ jobs: if: ${{ github.event_name == 'pull_request' }} # Runs on the local runners only when the repository variable CI_RUNNER is # "local" and the pull request is not from a fork. Otherwise it stays hosted. + # The fork check is a convenience, not a security boundary: on pull_request + # GitHub runs the workflow file from the PR, so a fork can rewrite runs-on. + # Set CI_RUNNER=local only after the repository is private; the runner group + # (private repositories only) is the real boundary. runs-on: ${{ (vars.CI_RUNNER == 'local' && github.event.pull_request.head.repo.fork != true) && fromJSON('["self-hosted","orbyn-local"]') || 'ubuntu-latest' }} timeout-minutes: 5 steps: