Skip to content

Run CI on GitHub's hosted runners - #825

Merged
wayneeseguin merged 1 commit into
developfrom
ci-github-hosted-runners
Sep 9, 2026
Merged

Run CI on GitHub's hosted runners#825
wayneeseguin merged 1 commit into
developfrom
ci-github-hosted-runners

Conversation

@wayneeseguin

Copy link
Copy Markdown
Contributor

Standard GitHub-hosted runners are free and unmetered for public repositories, and shieldproject/shield is public. Pointing CI at them costs nothing and removes the reason to attach lab runners to a repository with 66 forks, where a fork pull request would otherwise run a stranger's code on our own hardware.

The jobs themselves are unchanged: lint, test, build, plugin-tests, and security, with the same commands and the same pinned actions. What goes away is the machinery that only existed to survive a persistent shared host — the golang container, the bind-mounted module and build caches, the system-level safe.directory write, and the GOMAXPROCS: 2 cap. actions/setup-go handles the toolchain and its own caching on a fresh runner.

This is also the first run of the workflow that can actually execute, since no runner was ever attached to this org. Everything it gates on passed locally on develop: gofmt clean, go vet clean, the race suite green across all nine packages, the vendored build fine, govulncheck finding nothing reachable, and trivy exiting zero.

Standard hosted runners are free and unmetered for public repositories,
so there is nothing to gain by pointing this repository at the lab
runners, and something real to lose: SHIELD has 66 forks, and a fork
pull request on a self-hosted runner runs a stranger's code on our own
hardware.

Moving to ubuntu-latest drops the machinery the lab runners needed. The
golang container, the bind-mounted module and build caches, the
system-level safe.directory write, and the GOMAXPROCS cap all existed
to work around a persistent shared host, and a fresh hosted runner has
none of those problems.
@wayneeseguin
wayneeseguin merged commit 39c1eb9 into develop Sep 9, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant