From 6a1f38ae23abc4e88a254b579d884cb2fcbdeedc Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Sun, 29 Nov 2026 16:21:04 -0600 Subject: [PATCH] ci: run public-repo workflows on GitHub-hosted runners Self-hosted runners should almost never serve public repositories: any fork PR can run code on the host. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 3 +-- .github/workflows/deploy.yml | 4 ++-- .github/workflows/release.yml | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af868a2..01cd683 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,8 @@ permissions: jobs: docs-build: - # Fork PRs never run on the self-hosted runner. if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository - runs-on: [self-hosted, Linux, X64, hetzner] + runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f362a10..b7dbc93 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,7 +18,7 @@ concurrency: jobs: build: - runs-on: [self-hosted, Linux, X64, hetzner] + runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: @@ -50,7 +50,7 @@ jobs: deploy: needs: build - runs-on: [self-hosted, Linux, X64, hetzner] + runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3664e1b..8ee8174 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,8 @@ jobs: permissions: contents: write actions: read - uses: bakerboy448/.github/.github/workflows/release-calver-gated.yml@3f32d193e96c22760f874cc5ae35e0f072e0a173 + uses: bakerboy448/.github/.github/workflows/release-calver-gated.yml@958b5e1eca1f837b130d5c67a067287a5954aa73 with: sha: ${{ github.event.workflow_run.head_sha }} + runner: '"ubuntu-latest"' required_workflows: ci.yml