Summary
Adds the GitHub Actions self-hosted runner (myoung34/docker-github-actions-runner) as a catalog app, available: false like the other new entries. It runs the pinned myoung34/github-runner:2.338.2 image and registers the server with a repository or organization, so workflow jobs run on the user's own hardware instead of metered GitHub-hosted minutes.
Motivation
Part of a batch of self-hosted apps contributed to the one-click catalog. A runner is a common thing to put next to deployed apps, and it has no web UI, so it also exercises the worker-only (no exposed port) path of the catalog.
Related issue
None.
Changes
packages/core/src/apps/catalog/github-runner.json(new), the regeneratedcatalog.json, and anAPP_LOGOentry inpackages/ui/src/AppLogo.tsx(required by the dashboard logo test).- One service,
runner, with no exposed port or endpoint. Install settings: access token (secret), scope (repository or organization), repository URL, organization name and labels. They are mapped into the service env with{{config:...}};ACCESS_TOKENissecretEnv. - Two named volumes:
runner_state(CONFIGURED_ACTIONS_RUNNER_FILES_DIR, so restarts reuse the registration instead of re-registering) andrunner_work.DISABLE_AUTOMATIC_DEREGISTRATION=true, as the image asks when runner reuse is on. EPHEMERALandDISABLE_AUTO_UPDATEare deliberately not set: this image treats any set value, includingfalse, as enabled.- The host Docker socket is deliberately not mounted, because it would give every job root control of the host. Jobs therefore cannot build Docker images.
minResourcesof 2 vCPU / 2 GB. The Connection card has no credentials (the app has no login); it shows the labels and a security note (private repositories only, no socket, old system Node).
Verification
Catalog checks: bun scripts/gen-catalog.ts + bunx vitest run src/apps/catalog.test.ts: 47/47 passing, and the dashboard app-logo tests pass.
Host fit: openship app host-fit against the test node reported a fit (8 vCPU, about 30 GB).
Live install on a test node (custom-app upload, CLI install, deploy):
-
The pinned image pulled and the container started.
-
First run exposed a template bug: the settings were not reaching the container env, and the runner exited with
REPO_URL required. After mapping them through{{config:...}}and removingEPHEMERAL/DISABLE_AUTO_UPDATE, the env was correct. -
With a placeholder token the runner reached GitHub and got
401, as expected. With a fine-grained token that could not see the repository it got404on the registration-token call and crash-looped until the token's repository access and Administration permission were fixed. -
With a valid token the runner registered ("Runner successfully added"), logged "Connected to GitHub" and "Listening for Jobs", and showed as Idle under the repository's runners. The container then ran steadily with no restarts, no OOM kill, about 520 MiB.
-
A real CI workflow on a private repository was picked up and executed: some jobs succeeded. Two failed at
pnpm/action-setupbecause the image's system Node is v10.19 (Cannot find module 'node:path'); addingactions/setup-nodebefore it fixed that and the workflow then ran fine. The Connection card note now says so. -
Not tested: an organization-scope runner (
RUNNER_SCOPE=org),EPHEMERALmode, mounting the Docker socket or sysbox, jobs that build images, upgrading from an earlier image tag, and the Connection card's labels row after install. -
Known limitation: when the labels or scope fields are left untouched they reach the container empty (the declared defaults are not applied), so the runner only gets the image's default labels (
self-hosted,Linux,X64). Labels are also fixed at first registration, so changing them later needs the runner removed on GitHub and the state volume cleared. The help text says so. -
bun run test, lint andbun formatwere not run across the repo; CI covers the rest.
Checklist
- One change per PR — one bug, or one agreed feature, with nothing unrelated bundled in
- The diff is scoped — no reformatting or lint fixes on lines I wasn't otherwise changing
- A test fails without this change and passes with it (or I explained above why there isn't one)
-
bun run test,bun run --cwd <workspace> lint, andbun formatall pass locally — I ran only the catalog test (47/47) and the logo tests; CI covers the rest - I understand every line of this diff and can explain it in review
🤖 Generated with Claude Code