invalid-runs-on
What it does
Section titled “What it does”Reports a runs-on label that is not one of the known runner labels. A job that also has self-hosted is not checked, ${{ matrix.name }} stands for the values of the matrix, and other expressions are skipped.
Why it matters
Section titled “Why it matters”A label that no runner has leaves the job queued with no runner to take it. A misspelling such as ubuntu-lates is the usual cause. The option labels lists the known labels.
To fix, use a label of a hosted runner, or add self-hosted for your own.
Example
Section titled “Example”... a: runs-on: ubuntu-latest b: runs-on: ubuntu-lates c: runs-on: [self-hosted, gpu] d:... runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, linux-latest] include: - os: macos-10 f: runs-on: group: big labels: [ubuntu-large] g: runs-on: macos-15 h: runs-on: steps: []Configuration
Section titled “Configuration”github-actions: lint: rules: invalid-runs-on: level: warn # off, warn (default), error options: labels: ["ubuntu-slim","ubuntu-latest(-(4|8|16)-cores)?","ubuntu-(24|22)\\.04(-arm)?","windows-latest(-8-cores)?","windows-2025(-vs2026)?","windows-2022","windows-11-arm","macos-latest(-(xlarge|large))?","macos-(26|15)(-(intel|xlarge|large))?","macos-14(-(xlarge|large))?","self-hosted","linux","macos","windows","x64","arm","arm64"]| Option | Type | Default | Description |
|---|---|---|---|
labels |
list | `[“ubuntu-slim”,“ubuntu-latest(-(4 | 8 |
Enabled by the presets: github-actions/actionlint.
Suppress one line with sudsy-disable-next-line invalid-runs-on in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| actionlint | runner-label/unknown |
partial | Sudsy’s list is patterns for the hosted images, not the list of one actionlint release; labels with an expression are not checked. |