Skip to content

ci: use github-hosted runners for public repo security#2625

Merged
vlj91 merged 1 commit into
masterfrom
nt-public-repo-github-hosted-runners
May 18, 2026
Merged

ci: use github-hosted runners for public repo security#2625
vlj91 merged 1 commit into
masterfrom
nt-public-repo-github-hosted-runners

Conversation

@vlj91
Copy link
Copy Markdown
Contributor

@vlj91 vlj91 commented May 18, 2026

Jira: APE-2041


Summary

Switches all jobs in .github/workflows/build-and-test.yml from runs-on.com (4cpu-linux-x64) to GitHub-hosted ubuntu-latest.

This repo is public, so workflows can be triggered by PRs from untrusted contributors. Executing PR-author code on managed/self-hosted runner infrastructure exposes that infrastructure — secrets, network position, cached credentials, neighbouring jobs — to whoever opened the PR. GitHub-hosted runners are ephemeral, network-isolated, and discarded after each job, which is the correct execution environment for untrusted code.

The capacity drop is minimal: ubuntu-latest provides 4 vCPU for public repos, matching the previous 4cpu-linux-x64 configuration.

This change is consistent with the org policy update in ai-global-context (deployment.md → "Exception: public repositories must use GitHub-hosted runners").

Test plan

  • CI runs green on this PR
  • Matrix test job (test-node-{18,20,22,24} × shard-{1..4}) completes within reasonable time
  • test-summary-publish, lint-check jobs succeed
  • No regressions in publish job (release-only — won't run on this PR)

🤖 Generated with Claude Code

Public repositories accept pull requests from untrusted contributors. A
workflow that executes PR-author code on self-hosted or managed runner
infrastructure exposes that infrastructure — secrets, network position,
cached credentials, neighbouring jobs — to whoever opened the PR.

Switch all jobs in build-and-test.yml from runs-on.com (4cpu-linux-x64)
to GitHub-hosted ubuntu-latest. GitHub-hosted runners are ephemeral,
network-isolated, and discarded after each job, which is the only safe
execution environment for untrusted code from forks.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vlj91 vlj91 requested review from timdawborn and tory24 May 18, 2026 23:26
@vlj91 vlj91 marked this pull request as ready for review May 18, 2026 23:26
@vlj91 vlj91 requested a review from a team as a code owner May 18, 2026 23:26
@vlj91 vlj91 merged commit 6bca37e into master May 18, 2026
21 checks passed
@vlj91 vlj91 deleted the nt-public-repo-github-hosted-runners branch May 18, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants