From f777f268b0c32ff756fac0d7980b20b388dc9971 Mon Sep 17 00:00:00 2001 From: Scott McCarty Date: Tue, 17 Nov 2026 22:10:10 -0500 Subject: [PATCH] ci: run CI on self-hosted runners (a275) Same-repo pull requests run on the cached self-hosted runner and pushes on the uncached one; forks and Dependabot stay on GitHub's machines, and an empty runner variable falls back to ubuntu-latest. The expression is crunchtools/trentina's security.yml. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01R7Y1jeWKZVB8rtVJ3TZsRc --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3af87ab..6f48288 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,17 @@ permissions: jobs: sdlc: name: sdlc ci - runs-on: ubuntu-latest + # Same-repo PRs run on our cached runner, pushes and schedules on the uncached + # one; forks and Dependabot stay on GitHub's. An empty variable falls back to + # ubuntu-latest (crunchtools/trentina security.yml). + runs-on: >- + ${{ github.event_name == 'pull_request' + && github.event.pull_request.head.repo.full_name == github.repository + && github.event.pull_request.user.login != 'dependabot[bot]' + && (vars.CACHED_RUNNER_LABEL || 'ubuntu-latest') + || github.event_name != 'pull_request' + && (vars.UNCACHED_RUNNER_LABEL || 'ubuntu-latest') + || 'ubuntu-latest' }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: