From 25148f90cdf9858a3edec210f1e59babed366acf Mon Sep 17 00:00:00 2001 From: dadado <273612197+agent-kit-startup@users.noreply.github.com> Date: Thu, 3 Dec 2026 21:42:44 -0300 Subject: [PATCH] ci: route the hygiene job to the phone runner through CI_RUNNER_HYGIENE --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b589b4..2ea67cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,10 @@ jobs: run: bash tests/run.sh hygiene: - runs-on: ubuntu-latest + # Fork PRs stay on GitHub's runners: the phone never runs code from a fork. Elsewhere the job goes to + # the runner named by the repository variable CI_RUNNER_HYGIENE (a JSON label list, e.g. + # ["android-arm64"]), and to ubuntu-latest while it is unset. + runs-on: ${{ github.event.pull_request.head.repo.fork && 'ubuntu-latest' || fromJSON(vars.CI_RUNNER_HYGIENE || '"ubuntu-latest"') }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Hygiene scan (secrets, e-mails, IPs, personal paths)