Use this when using GitHub's managed runners.
GitHub-hosted Runner
GitHub-hosted runners are fresh VMs (Ubuntu, Windows, macOS) that GitHub provides for each job, selected with runs-on: ubuntu-latest, with common tools preinstalled and no maintenance.
1. GitHub-hosted runners are fresh VMs per job.
2. Pin image versions for stability.
3. No access to private networks by default.
4. Clean state each run.
5. Larger runners available.
job → fresh hosted VM → destroyed
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 ephemeral runner image/label, preinstalled tool drift, permissions/network egress and using run metadata to identify the exact execution environment.
Step 2 Common mistakes Narrow the fault
- Expecting GitHub-hosted runners to reach internal networks.
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.
- Each job gets a fresh VM.
- Common tools are preinstalled.
- GitHub-hosted runners cannot reach private networks.
- runs-on: ubuntu-latest (or pinned ubuntu-24.04) — image
- Preinstalled software list — tools
- Usage minutes/billing — cost
ReferenceWhy it matters1 section · depth on demand
In depth
GitHub-hosted runners are virtual machines that GitHub creates for each job and destroys afterwards. Every job starts clean with a large set of preinstalled tools (Python, Node, Docker, cloud CLIs), which makes builds reproducible and removes runner maintenance.
| Label | OS |
|---|---|
ubuntu-latest, ubuntu-24.04 | Linux |
windows-latest | Windows Server |
macos-latest | macOS |
Limitations: no access to private networks without a VPN or tunnel step, job time limits, and the -latest label moves to new OS versions over time — pin a specific version (ubuntu-24.04) when tool versions matter. Cache dependencies (actions/cache, setup-python with cache: pip) to avoid reinstalling them on every run.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
The linked authority for bounded mechanics is GitHub Docs — GitHub-hosted 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 > GitHub-hosted Runner. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
For ephemeral runner image/label, preinstalled tool drift, permissions/network egress and using run metadata to identify the exact execution environment, prefer typed fields and stable IDs over human presentation text.