VPS Provider

GitHub Actions self-hosted runner: setup, security and cost

Published

A GitHub Actions self-hosted runner is a small program you install on your own machine, which picks up jobs from GitHub and runs them there instead of on GitHub's runners. GitHub charges nothing for the minutes it runs, so you pay only for the server: $39 a month on our price list buys a dedicated Core i3-1315U, the same money as 6,500 minutes on GitHub's 2-core Linux runner.

GitHub's prices, limits and recommendations below come from its documentation and changelog as we read them on 30 November 2026. Our prices are from our price list on the same day, per month and without tax.

What GitHub charges, and what it does not

On private repositories, GitHub-hosted runners are billed by the minute, and each job is rounded up to the next whole minute. Every plan includes some usage each month, given in dollars: $12 on Free, $18 on Pro and on Team. Public repositories use the standard runners for free.

GitHub-hosted runnerPer minutePer hour
Linux, 2 cores, x64$0.006$0.36
Linux, 2 cores, arm64$0.005$0.30
Windows, 2 cores$0.010$0.60
macOS$0.062$3.72
Self-hostedNo chargeNo charge

On 16 December 2025 GitHub announced a platform charge of $0.002 per minute on self-hosted runners from 1 March 2026, together with lower prices for its own runners from 1 January 2026. It then wrote that it was postponing the self-hosted charge to re-evaluate its approach, and it gave no new date. The price list we read today shows no charge for self-hosted runners. If GitHub brings the charge back, it would add $0.12 per hour of jobs, still a third of the hosted Linux price.

When your own server costs less

The $12 on Free covers 2,000 minutes of 2-core Linux a month, and the $18 on Pro and Team covers 3,000. Past that, a fixed monthly server is worth it once your jobs pass the hours in this table.

Our serverPer monthSame money on GitHub's 2-core Linux runner
Dedicated Core i3-1315U, 8 threads, 16 GB$396,500 minutes, about 108 hours
Dedicated Ryzen 5 5600H, 12 threads, 16 GB$498,167 minutes, about 136 hours

A month has about 720 hours, and the server runs jobs during all of them. Each runner takes one job at a time, so to run jobs in parallel you register several runners on the same machine: a server with 8 threads can carry three or four 2-core jobs at once.

Our servers run Linux only. Jobs that need Windows or macOS stay on GitHub's runners, and you can mix the two in the same workflow.

How big a server it needs

GitHub asks very little of the machine itself: a supported system and outbound HTTPS. The size depends on your builds. These sizes are our suggestion.

JobsServerPer month
Linting, unit tests, one runnerVPS, 2 vCPU, 4 GB, 80 GB NVMe$13.34
Docker builds, two or three runnersDedicated Core i3-1315U, 8 threads, 16 GB, 256 GB NVMe$39
Heavy builds, four or more runnersDedicated Ryzen 7 6800H, 16 threads, 32 GB, 256 GB NVMe$79

The vCPUs of our VPS are shared, so a build that keeps every core busy for minutes runs at a steadier speed on a dedicated server, where the cores are yours. Docker images and caches fill disks quickly: clean them on a schedule.

Set it up on Linux

GitHub supports Ubuntu 20.04 or later, Debian 10 or later, RHEL 8 or later and several other systems, on x64; arm64 is in public preview. Our Ubuntu 24.04 and Debian 12 are on the list. Rocky Linux and AlmaLinux are not named, although both are built to match RHEL, which is.

  1. Create a normal user for the runner, not root.
  2. In the repository or organisation, open Settings, then Actions, then Runners, and press New self-hosted runner. GitHub shows the download and configuration commands for your system, with a token that expires after one hour.
  3. Run the configuration as that user, with the address and token GitHub gave you: ./config.sh --url https://github.com/YOUR-ORG --token YOUR-TOKEN
  4. If you want the runner to take one job and then leave, add this flag to the same command: --ephemeral
  5. Install it as a service so it starts after a reboot, then start it: sudo ./svc.sh install YOUR-USER sudo ./svc.sh start

In the workflow, send the job to it with this line: runs-on: [self-hosted, linux, x64]

The runner updates itself when it gets a job, or within a week of a release if it is idle. If you turn updates off, GitHub expects you to update within 63 days of a new version.

No ports to open

The runner connects out to GitHub over HTTPS on port 443 and waits for jobs; GitHub never connects in. Our servers start with a firewall that has only SSH open, and the runner works with it as it is, so you do not open anything for it.

Security: the part to get right

GitHub recommends using self-hosted runners only with private repositories. On a public repository, anyone can open a pull request from a fork, and a workflow from that pull request could run their code on your machine. If you must build public code on your own server, keep the runner on a machine with nothing else on it.

A runner that is not ephemeral keeps its files between jobs, so one job can leave something behind for the next. Ephemeral runners start clean every time, but something has to register a new runner after each job; GitHub recommends them when you scale runners automatically.

If your jobs build containers, the runner user ends up in the docker group, and Docker's own documentation says that group grants root-level privileges. Treat the whole server as belonging to the CI, and keep your databases and production apps on another machine.

Limits that still apply

A job on a self-hosted runner can run for up to 5 days. A job that waits in the queue for more than 24 hours without a runner fails.

Questions

Are GitHub self-hosted runners free?

Yes. GitHub's price list, as we read it on 30 November 2026, has no charge for self-hosted runners. A charge of $0.002 per minute announced for March 2026 was postponed with no new date. You pay only for the machine.

What does a self-hosted runner need?

A supported system (for example Ubuntu 20.04 or later, Debian 10 or later, or RHEL 8 or later), outbound HTTPS on port 443 and at least 70 kbps up and down. It needs no inbound ports.

Can I use a self-hosted runner on a public repository?

GitHub recommends against it: a pull request from a fork can run code on your runner. Use self-hosted runners with private repositories, or keep the runner on a machine with nothing else on it.

How many runners can one server run?

Each runner takes one job at a time, and you can register several on one machine. As a rule of thumb, count two threads and a few GB of memory per runner: a server with 8 threads and 16 GB carries three or four.

Sources, read on 30 November 2026: GitHub Actions runner pricing, GitHub Actions limits, GitHub changelog, 16 December 2025, Self-hosted runners reference, Adding self-hosted runners, Running the runner as a service, Docker: the docker group.

Written and checked by the VPS Provider team.