From d86a5fb8fe1fd4fb179dbe999c1ef4d917b41267 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Sun, 29 Nov 2026 16:21:03 -0600 Subject: [PATCH 1/2] 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/devvit.yml | 2 +- .github/workflows/docker-build.yml | 4 ++-- .github/workflows/release.yml | 3 ++- devvit-migration/docs/STATUS.md | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/devvit.yml b/.github/workflows/devvit.yml index 382022e..14649e4 100644 --- a/.github/workflows/devvit.yml +++ b/.github/workflows/devvit.yml @@ -25,7 +25,7 @@ permissions: jobs: test: - runs-on: [self-hosted, Linux, X64, hetzner] + runs-on: ubuntu-latest timeout-minutes: 15 defaults: run: diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index e4927b6..f92acdd 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -32,7 +32,7 @@ env: jobs: build: - runs-on: [self-hosted, Linux, X64, hetzner] + runs-on: ubuntu-latest timeout-minutes: 15 permissions: contents: write @@ -114,7 +114,7 @@ jobs: security-scan: needs: build - runs-on: [self-hosted, Linux, X64, hetzner] + runs-on: ubuntu-latest timeout-minutes: 15 if: github.event_name != 'pull_request' permissions: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8595ffc..f9b6ec2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,9 @@ jobs: permissions: contents: write actions: read - uses: bakerboy448/.github/.github/workflows/release-calver-gated.yml@48e44fac905a8c374361800bb6f069ba15d88ab4 + uses: bakerboy448/.github/.github/workflows/release-calver-gated.yml@958b5e1eca1f837b130d5c67a067287a5954aa73 with: sha: ${{ github.event.workflow_run.head_sha }} + runner: '"ubuntu-latest"' required_workflows: pre-commit.yml,docker-build.yml optional_workflows: devvit.yml diff --git a/devvit-migration/docs/STATUS.md b/devvit-migration/docs/STATUS.md index 33ae7a9..c316d2b 100644 --- a/devvit-migration/docs/STATUS.md +++ b/devvit-migration/docs/STATUS.md @@ -27,7 +27,7 @@ | Concurrency | `lock` hash with a 120 s stale takeover, so the cron and a menu click cannot publish at once. | | Tests | 42 Vitest tests in 5 files: render, FR-7/FR-8 correlation, settings, Redis store (`@devvit/test` harness), publish cycle, golden parity. | | Parity | `devvit/test/parity/golden.md` is produced by `python_render.py`, which runs the fixture through the unmodified Python functions. CI regenerates it with uv and diffs it, and the TS pipeline must equal it byte for byte. | -| CI | `.github/workflows/devvit.yml` on the org `hetzner` runner: `npm ci`, type-check, test, build, Python golden check. | +| CI | `.github/workflows/devvit.yml` on GitHub-hosted `ubuntu-latest` (public repo): `npm ci`, type-check, test, build, Python golden check. | ## Deliberate differences from Python From c5c6ae75eddd64f5126891a9c30bd2299134d30f Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Sun, 29 Nov 2026 16:24:00 -0600 Subject: [PATCH 2/2] ci: repin shared pre-commit to the GitHub-hosted version Co-Authored-By: Claude Opus 5.5 --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 9104e51..fc9c1d2 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,4 +9,4 @@ name: Pre-commit jobs: pre-commit: - uses: Baker-scripts/.github/.github/workflows/pre-commit.yml@1840cbe67ba19c9db3253508fdda40197355abe7 # main + uses: baker-scripts/.github/.github/workflows/pre-commit.yml@ac7d24b6b98b152aac4e73636a2cba72653828de # main