From e3c37c13b6f7af92131c3fd61cabc1b40fc90273 Mon Sep 17 00:00:00 2001 From: Scott McCarty Date: Wed, 18 Nov 2026 06:10:05 +0000 Subject: [PATCH] chore(gatehouse): run guard on our runners in private repos The Protect workflows job only reads the changed-file list through the API, so it can run on vars.UNCACHED_RUNNER_LABEL in private repos the same way the review job does (gatehouse#154). Public repos stay on ubuntu-latest so forks can't reach a self-hosted label. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01R7Y1jeWKZVB8rtVJ3TZsRc --- CHANGELOG.md | 6 ++++++ examples/gatehouse.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c14b5ca..5090c9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ All notable changes to this project are documented here, following ## [Unreleased] +### Changed + +- `examples/gatehouse.yml`: the `guard` job ("Protect workflows") runs on + `vars.UNCACHED_RUNNER_LABEL` in private repos, so they no longer depend on + GitHub Actions billing. Public repos stay on `ubuntu-latest`. + ## [0.10.0] - 2026-11-18 ### Fixed diff --git a/examples/gatehouse.yml b/examples/gatehouse.yml index a4377cf..fbdcb89 100644 --- a/examples/gatehouse.yml +++ b/examples/gatehouse.yml @@ -52,7 +52,7 @@ jobs: # Runs on replies too. A job skipped on the reply event reports # "skipped", which a required check counts as passing: skipping the # guard there would let any comment on a rejected fork PR clear it. - runs-on: ubuntu-latest + runs-on: ${{ github.event.repository.private && vars.UNCACHED_RUNNER_LABEL || 'ubuntu-latest' }} permissions: contents: read pull-requests: write