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)