kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

Guides / kosa8 Cloud / GitHub Actions runners

GitHub Actions runners on kosa8 Cloud

Run your GitHub Actions jobs on kosa8 Cloud. Each job gets a fresh runner in its own sealed microVM, which is deleted when the job ends. You pick the size per job, from 2 to 16 vCPUs, and pay only for the seconds it runs.

Set it up once#

  1. In app.kosa8.com, check you have a payment method on file (Usage → Choose how to pay) and a plan. Runners use sized sandboxes, which need both.
  2. As an admin, open Settings → GitHub and click Connect GitHub (or open the install_url from GET /v1/github). The same kosa8 GitHub App gives sandboxes your repos and runs your Actions jobs: one install. Choose the account and repositories, and approve the request to confirm who you are. GitHub then sends you back to kosa8, which links the installation to your organization. Runners are the one feature that needs the app's Administration: Read and write permission on the repository: GitHub requires it to register a just-in-time runner (generate-jitconfig) and to remove one. kosa8 asks for a token with only that permission, for that one repository, each time it does so.
  3. Turn on each repository that should run on kosa8, under Runners on the same page, or with POST /v1/integrations/github/repos {"repo": "owner/name", "enabled": true}. Runners are opt-in per repository: a job from a repository that is not turned on is ignored, even when the app can see it.
  4. Change runs-on in the workflows that should run on kosa8:
jobs:
  test:
    runs-on: kosa8            # 2 vCPU, 4 GiB
    steps:
      - uses: actions/checkout@v4
      - run: npm ci && npm test
  build:
    runs-on: kosa8-8x16       # a bigger runner
    steps:
      - uses: actions/checkout@v4
      - run: make -j8

runs-on: [self-hosted, kosa8, kosa8-4x8] works too. The runner registers with exactly the labels the job asks for.

Move your workflows from GitHub-hosted runners#

kosa8 never edits your workflows (its GitHub App tokens never carry the Workflows permission), so the move is a commit you make yourself, one job at a time:

  1. Turn the repository on first (step 3 above). A runs-on: kosa8 job from a repository that is not turned on is not picked up, and waits in GitHub's queue until GitHub drops it.
  2. Move one job. Change its runs-on: ubuntu-latest (or ubuntu-24.04) to runs-on: kosa8, or a size label such as kosa8-4x8, on a branch, and open a pull request. The job's checks show where it ran.
  3. Check what the job assumes. kosa8 runners are Linux x64 only, so jobs on windows-*, macos-* or Arm runners stay on GitHub's. The runner image is kosa8's universal image, not GitHub's Ubuntu image: steps that rely on a tool preinstalled only on GitHub's image should install it, as the actions/setup-* actions already do. Commands run as root, so sudo is not needed (and may not be installed).
  4. Move the rest once that job passes. To go back, change runs-on back; nothing else on GitHub changed.

Secrets work as before: GitHub gives each job its GITHUB_TOKEN and the secrets the workflow names, inside that job's sandbox, as on any self-hosted runner. Each job's sandbox is fresh and is deleted when the job ends.

Sizes#

LabelvCPURAM
kosa8-2x4 (default)24 GiB
kosa8-4x848 GiB
kosa8-8x16816 GiB
kosa8-16x321632 GiB

A runner is billed per vCPU-hour and GiB-hour of its size at the usual sandbox rates on the pricing page, per second from when the runner's sandbox is up until it is deleted. Booting takes from seconds up to a few minutes the first time a host pulls the runner image. A host gives sized sandboxes (runners included) at most three quarters of its vCPUs, so a big runner can wait a little for room.

Concurrency and queueing#

Runner sandboxes count toward your organization's limit of sandboxes running at once (your plan's limit; GET /v1/limits shows it). While you are at the limit, new jobs stay queued, oldest first, and start each minute as earlier ones finish. A job that is still queued after 24 hours is dropped, as GitHub drops it too.

CI minutes and cost#

CI minutes are sandbox-minutes: the time a runner's sandbox runs, from boot to deletion, billed at the sandbox rates and counted in your plan's sandbox-hours like any sandbox. Usage shows the month's CI minutes, and Pipelines → GitHub Actions jobs lists each job with its repository, status, minutes and cost (GET /v1/ci/jobs).

What is in the runner#

The runner image is the GitHub Actions runner (v2.338.2) on kosa8's universal image. It has git and git-lfs, compilers, Python, Node.js and the other tools listed on the universal image page. Commands run as root. The sandbox is persistent, so services a step starts in the background keep running for the steps after it.

How it works#

  • GitHub sends kosa8 a workflow_job event when a job with the kosa8 label is queued. kosa8 creates a sandbox and registers a just-in-time runner for the repository. The runner takes one job and exits.
  • When the job completes, the sandbox is deleted. Nothing outlives its job: a sandbox that does not boot within 20 minutes, or a runner that gets no job within 15 minutes, is deleted and unregistered, and a job that runs past 6 hours (GitHub's default job timeout) is ended. A job cancelled before it started never gets a sandbox, or its runner is deleted within 2 minutes.
  • GitHub hands a runner any queued job whose labels it matches, so a runner can run a different job from the one that made it. kosa8 tracks jobs by runner name, and each delivery is verified (HMAC-SHA256 signature) and safe to receive twice.
  • The runner's registration token reaches the sandbox as an environment value. The audit log records the command, never that value.
  • To stop for one repository, turn it off. To stop for all, uninstall the app on GitHub, or call DELETE /v1/integrations/github/{installation_id}.

Something wrong or missing? Write to contact@kosa8.com.

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · Zero Trust cybersecurity infrastructure for AI agents · Local models served by llamay · Agent gateway: MAQPNA