Run GitHub Actions jobs on pols
Install the pols.so GitHub App, set runs-on to pols-small, pols-default, pols-large or pols-xlarge, and each job runs in a fresh Ubuntu 24.04 sandbox that is deleted after it.
A workflow job that asks for a pols runner runs in a sandbox of its own: pols starts it when GitHub queues the job, registers a runner for it, and deletes the sandbox once the job is over, like GitHub’s hosted runners. The sandbox is billed per second at sandbox rates.
jobs:
test:
runs-on: pols-default
steps:
- uses: PEWEO/pols-checkout@v1
- run: make test
1. Connect GitHub
Runners use the same pols.so GitHub App as sites from GitHub. An owner or admin of your org installs it on a GitHub organization and connects it on the GitHub page of the account pages.
For runners, the app asks for three more things on GitHub, which the organization’s owners accept in the installation’s settings:
- the repository permission Actions (read);
- the organization permission Self-hosted runners (read and write);
- the event Workflow job.
Until they are accepted, the installation gets no runners, and its queued jobs say so on the Runners page, with a link to accept them. The Runners page lists the org’s installations with a link to each one’s settings on GitHub.
2. Set runs-on
Name one pols size as the job’s runs-on label:
| Label | vCPU | RAM | Disk |
|---|---|---|---|
pols-small |
2 | 4 GiB | 20 GiB |
pols-default |
4 | 8 GiB | 50 GiB |
pols-large |
8 | 16 GiB | 100 GiB |
pols-xlarge |
16 | 32 GiB | 200 GiB |
These are the sandbox sizes. pols-default has no less than GitHub’s standard ubuntu-latest runner. Besides the one pols-<size> label, a job may also name self-hosted, Linux and X64 (in any case), which every pols runner has; a job with any other label is not run by pols.
runs-on: pols-large
runs-on: [self-hosted, linux, x64, pols-large] # the same
The migration wizard on the Runners page makes these changes for a repository and opens a pull request with them.
Which jobs run
pols runs the jobs of private and internal repositories of GitHub organizations. A job of a personal account, a public repository or an archived repository is not run; it is listed on the Runners page with the reason. Public repositories are left out because pull requests from forks could run code on their runners (see security). For a public repository, a self-hosted runner in a sandbox you keep is the alternative.
What a job runs on
Each job gets a new sandbox made from the default template: pols’s base image, Ubuntu 24.04 with Docker, Buildx and Compose, Git, Git LFS, build tools, Python 3, Node.js 24, Go and Chrome. The job runs as user with passwordless sudo, ImageOS=ubuntu24, and the home directory /home/user.
Compared with GitHub’s ubuntu-latest:
- There is no preinstalled tool cache:
actions/setup-node,setup-python,setup-goand the like download the versions they need on each job. - Java, .NET, Ruby, PHP, Rust, the cloud CLIs (
az,aws,gcloud) andghare not installed. - The home directory is
/home/user, not/home/runner.
Nothing carries over from one job to the next except the repository’s runner cache. actions/cache works too.
How a runner starts
- GitHub sends pols the job’s
queuedevent. pols starts as many runner sandboxes for each installation and size as it has jobs queued, taking a pre-booted VM where one is waiting. - Once the sandbox runs, pols registers a just-in-time runner with the organization, in its Default runner group, with the labels
self-hosted,Linux,X64andpols-<size>, named after the sandbox’s ID. - GitHub gives a queued job to any idle runner with its labels, so a runner may run another queued job with its labels instead of the one it was started for. When that job completes, pols deletes the sandbox.
A runner no queued job needs any more is removed from GitHub and deleted. Runner sandboxes never go to standby, are not listed among your org’s sandboxes, and raise no webhook events.
The organization’s Default runner group must let the repository use self-hosted runners. If GitHub gives a job to no pols runner within 15 minutes, pols stops offering it runners, and its note on the Runners page says to check the Default runner group; change the group’s settings on GitHub, then re-run the job.
The Runners page
The Runners page of the account pages lists the org’s jobs, newest first, 50 a page. For each job it shows the workflow and job name (linking to the job on GitHub), the repository, the state (queued, running, then GitHub’s conclusion), why a queued job waits, the size it asked for and the runner sandbox that ran it, when it was queued and how long it waited, how long it ran, and for jobs queued this month, what its runner sandbox has cost so far.
Above the list, tiles sum up the page’s jobs: how many, the median run time of the finished ones, the share that failed, and their cost this month. Below it are the runs-on lines, the sizes with their prices per hour, how many jobs your org runs at once, and the org’s GitHub installations. Jobs are kept for 30 days after they complete.