Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Summary
Adds the GitHub Actions self-hosted runner (myoung34/docker-github-actions-runner) as a catalog app,
available: falselike the other new entries. It runs the pinnedmyoung34/github-runner:2.338.2image 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).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.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.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 dashboardapp-logotests pass.Host fit:
openship app host-fitagainst 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
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🤖 Generated with Claude Code