talira

GitHub Actions Runner

The application that runs a job from a GitHub Actions workflow

open sourceMITself-hostablefree

The GitHub Actions Runner is GitHub's MIT-licensed agent that picks up and runs the jobs of GitHub Actions workflows; GitHub uses it on its hosted runners, and anyone can install it as a self-hosted runner on their own physical, virtual, container, on-premises or cloud machines. A self-hosted runner is registered to a repository, an organization or an enterprise with a short-lived token, connects out to GitHub over HTTPS on port 443 (no inbound ports), receives jobs whose runs-on labels match it, and updates itself unless told not to. It runs on 64-bit Linux, Windows and macOS on x64, with ARM64 in public preview, and the --ephemeral flag makes a runner take one job and then de-register, the basis for autoscaling with Actions Runner Controller on Kubernetes, GitHub's Scale Set Client or workflow_job webhooks. GitHub doesn't charge Actions minutes for self-hosted runners; you pay for the machines. GitHub isn't taking contributions to the repository for now but still ships security updates and fixes major breaking changes.

Ways to install

Problems it solves

  • run our GitHub Actions jobs on our own servers instead of paying for hosted runner minutes
  • our CI builds need a GPU and GitHub's hosted machines don't have one
  • GitHub workflow jobs need to reach a database that's only on our internal network
  • use a beefy build box in the office for GitHub Actions instead of the slow 2-core hosted runners
  • run GitHub Actions on a Mac mini we already own to build and sign our iOS app
  • our builds keep running out of memory on hosted runners and we need a bigger machine
  • keep a warm cache of dependencies on the CI machine between workflow runs
  • register a build agent for every repository in our GitHub organization at once
  • spin up a fresh VM for each GitHub Actions job and throw it away afterwards
  • autoscale CI runners on our Kubernetes cluster as jobs queue up in GitHub
  • run GitHub Actions jobs on ARM64 hardware to build native arm images
  • our compliance rules say build artifacts can't leave our own cloud account
  • a homelab server that runs the CI for my personal GitHub repos
  • send GitHub Actions jobs only to machines with a particular label like gpu or windows
  • CI runner that only makes outbound connections so I don't have to open firewall ports

View all 20 problems

Features

  • runs GitHub Actions workflow jobs on your own machines: physical, virtual, container, on-premises or cloud
  • repository, organization and enterprise runners, with runner groups to limit which repositories use them
  • jobs routed by runs-on labels and runner groups
  • outbound HTTPS only (port 443), no inbound ports
  • automatic updates, which can be turned off with --disableupdate
  • --ephemeral runners that take one job and de-register, and just-in-time runners created through the REST API
  • runs as a service on Windows, Linux and macOS
  • Linux, Windows and macOS on x64; ARM64 in public preview
  • official container image used by Actions Runner Controller
  • workflow_job webhooks and REST API for building your own autoscaling

Limitations

  • Not safe for public repositories: GitHub says self-hosted runners should almost never be used with public repositories, because anyone can open a pull request and compromise the machine4
  • Docker container actions and service containers need a Linux runner: Windows and macOS runners can't run them5
  • Doesn't scale itself: autoscaling needs ephemeral runners plus Actions Runner Controller, the Scale Set Client or your own webhook-driven automation5

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what GitHub Actions Runner does.

  1. WarpBuild High-performance GitHub Actions runners: 2x faster, 50% cheaper
  2. RunsOn Self-hosted GitHub Actions runners made simple, in your own AWS account
  3. Blacksmith Faster, cheaper hosted runners for GitHub Actions
  4. Depot Software delivery built for machine scale
  5. Ubicloud An open source cloud that can run anywhere: VMs, managed Postgres, Kubernetes, AI inference and GitHub Actions runners

Compare GitHub Actions Runner with the top 3