Use this when choosing where workflow jobs run.
Runners
Runners are the machines that execute GitHub Actions jobs, either GitHub-hosted or self-hosted, selected with runs-on labels.
1. Runners execute jobs: GitHub-hosted or self-hosted.
2. Choose labels.
3. Restrict self-hosted runners to trusted repos.
4. Ephemeral runners preferred.
5. Monitor capacity.
job runs-on → matching runner
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as event filter surprises, unpinned actions, secret/permission overreach, runner drift, matrix partial failure, artifact confusion and assuming conclusion=success shows external convergence, choosing the cases most relevant to runner labels/groups, ephemeral versus persistent state, tool/image versions, permissions/network reachability and mapping job attempts to runner identity.
Step 2 Common mistakes Narrow the fault
- Choosing self-hosted runners for public repos.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Runners are GitHub-hosted or self-hosted.
- runs-on labels choose the runner.
- Self-hosted runners need hardening.
gh api repos/<o>/<r>/actions/runners— self-hosted runners- runs-on labels — targeting
- Runner groups and repo access — restriction
ReferenceWhy it matters1 section · depth on demand
In depth
A runner is the machine that executes a GitHub Actions job. GitHub-hosted runners are fresh virtual machines provided by GitHub for each job; self-hosted runners are machines you operate, needed when jobs must reach internal networks or need special hardware or tools.
| GitHub-hosted | Self-hosted | |
|---|---|---|
| Maintenance | GitHub | You |
| Clean environment | Fresh VM per job | Persists unless ephemeral |
| Internal network access | No (without extra setup) | Yes |
| Cost | Included minutes, then per minute | Your infrastructure |
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, network-automation]
Jobs wait in the queue when no runner matches the labels — check spelling and that a runner with all labels is online.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
The linked authority for bounded mechanics is GitHub Docs — Runners; documentation support is separate from observed lab/production Evidence.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in GitHub Actions > Runners. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/concepts/runners · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For runner labels/groups, ephemeral versus persistent state, tool/image versions, permissions/network reachability and mapping job attempts to runner identity, prefer typed fields and stable IDs over human presentation text.