Skip to content

ci: local runners behind CI_RUNNER for the commit-message check - #284

Merged
kinqsradio merged 1 commit into
mainfrom
chore/local-runners
Nov 14, 2026
Merged

kinqsradio merged 1 commit into
mainfrom
chore/local-runners

Conversation

@kinqsradio

Copy link
Copy Markdown
Member

What

runs-on for the commit-message job is now self-hosted, orbyn-local when the repository variable CI_RUNNER is local and the PR is not from a fork; otherwise ubuntu-latest. The variable is unset, so nothing changes today.

Moved (behind the variable)

  • commit-messages (Node and git only, no secrets, no Docker)

Stayed hosted

  • site: runs docker compose config and docker build, which the runners cannot do (no Docker socket).
  • result (CI result): the required aggregate; kept hosted so a runner outage can never leave the required check pending.
  • cla.yml: uses CLA_SIGNATURES_TOKEN (secret).
  • Deploy is not in GitHub Actions.

Runner image gaps

  • No Docker or Docker daemon (blocks site).
  • No shellcheck (needed by site).
  • git and Node are not installed by ci-runner's Dockerfile (curl, jq, ca-certificates only); setup-node fetches Node, but git must be present in the base image for the commit-message check. Not verified on a live runner.
  • The runner group serves private repositories only; this repo is public, so jobs will not be picked up until it is private.

Test

CI_RUNNER unset: this PR's own checks run hosted. Not tested on a local runner.

AI usage

Written with an AI coding assistant; reviewed by the owner session.

The job moves to the self-hosted orbyn-local runners only when the repository variable CI_RUNNER is 'local' and the pull request is not from a fork. With the variable unset nothing changes. The site job needs Docker, and the result job is the required aggregate, so both stay hosted.
@kinqsradio
kinqsradio merged commit 2da071f into main Nov 14, 2026
8 checks passed
@kinqsradio
kinqsradio deleted the chore/local-runners branch November 14, 2026 05:42
@kinqsradio

Copy link
Copy Markdown
Member Author

Correction: the fork check in this change is a convenience, not a security boundary. On pull_request GitHub runs the workflow file from the PR itself, so a fork can rewrite runs-on. Setting CI_RUNNER=local is safe only after the repository is private; the runner group, which serves private repositories only, is the real boundary. Until then, leave CI_RUNNER unset.

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.

1 participant