From 1fbd79c8310e950797e20d2744462eb39cbe9a25 Mon Sep 17 00:00:00 2001 From: GeiserX Date: Tue, 23 Jun 2026 09:59:24 +0200 Subject: [PATCH] ci: use GitHub-hosted ubuntu-latest runners Public repos get free, unlimited standard GitHub-hosted runners. Move self-hosted Linux CI jobs to ubuntu-latest: frees the home-lab servers, runs PR code in throwaway isolated VMs (removing the fork-PR attack surface), and costs nothing on public repos. The previous self-hosted fork-guard is removed as it is no longer needed. --- .github/workflows/ci.yml | 6 +----- .github/workflows/release.yml | 2 +- .github/workflows/stale.yml | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c99d0f9..8725647 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,11 +9,7 @@ on: jobs: test: - runs-on: [self-hosted, Linux, X64] - # Do not run untrusted fork PR code on the self-hosted runner. - if: >- - github.event_name != 'pull_request' || - github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest strategy: matrix: python-version: ["3.9", "3.10", "3.11"] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 869c0ab..8d24beb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: publish: - runs-on: [self-hosted, Linux, X64] + runs-on: ubuntu-latest env: PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 622c18a..e0b5d50 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,7 +6,7 @@ on: jobs: stale: - runs-on: [self-hosted, Linux, X64] + runs-on: ubuntu-latest steps: - uses: actions/stale@v10 with: