ci: keep public repo gates on hosted runners - #11
Merged
Conversation
actions-pinned-check declared runs-on: opus-runner-standard and was never assigned a runner in this repo -- every run queued until GitHub cancelled it at 24h. The same gate completes in 8s on ubuntu-latest. A public repo should not target self-hosted runners regardless: a fork PR runs untrusted code, and the gate is shell-only, so a hosted runner is sufficient. check-pr-basics was reading its config through the contents API, which the job cannot reach. The file is in this repo and already checked out, so read it from the working tree instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
will-wang-opus
requested review from
bill-yen-opus,
liriansu-opus and
tonychan-opus
August 17, 2026 18:08
tonychan-opus
approved these changes
Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
This repo is public. Two of its gates were broken by assumptions that only hold for our private repos.
1.
actions-pinned-checknever ran. The job declaredruns-on: opus-runner-standard, a self-hosted runner. It has never once been assigned a runner in this repo — every run sat queued withrunner_name=""until GitHub auto-cancelled it at the 24h ceiling (run 31613024589, run 31847701356). The identical gate finished in 8 seconds when it ran onubuntu-latest(run 31595196968).Beyond the hang, a public repo should not target self-hosted runners at all: a pull request from a fork runs untrusted code, and a self-hosted runner would execute it on our own infrastructure with whatever state the previous job left behind. This is GitHub's documented guidance. The gate is shell-only — a
grepover.github/**— so it needs nothing a hosted runner lacks.2.
check-pr-basicsfailed on every PR.thehanimo/pr-title-checkerwas fetchingpull_request_title.jsonthrough the GitHub contents API, which this job cannot reach. The file lives in this repo and the job already checks it out, solocal_configuration_pathreads the same config straight off the working tree.LABEL.nameis empty in the config, which short-circuits the action's label calls, so that fetch was its only API call — the gate is now self-contained.Verified locally against this branch: the pinned-actions grep reports all
uses:refs SHA-pinned, andtest_pr_title.pypasses.AI coding brief
checkgate running on this repo — it had been queuing for 24h and dying without executing a step — and keep the public repo off self-hosted runners.runner_nameand the queued→cancelled timestamps off the jobs API separates them in one call and would have skipped the first attempt entirely. Worth stating a repo's visibility up front too: public vs private is what made both of these defaults wrong.