GitHub Actions "Required property is missing: jobs" in CI
Every workflow must define a top-level jobs mapping. If it is absent, misspelled, or indented away, the validator reports the required property is missing.
What this error means
The run fails with "Invalid workflow file" and "(Line: 1, Col: 1): Required property is missing: jobs".
GitHub Actions
Invalid workflow file: .github/workflows/ci.yml
(Line: 1, Col: 1): Required property is missing: jobsCommon causes
The jobs key is missing or misspelled
A typo like job: or Jobs: is not recognized, so the workflow has no jobs.
The jobs block was indented under another key
An over-indent placed jobs inside on or another mapping, hiding it from the root.
How to fix it
Add a top-level jobs mapping
- Add
jobs:at the root, unindented. - Define at least one job with
runs-onandsteps. - Re-run the workflow.
.github/workflows/ci.yml
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo hiCheck spelling and indentation of jobs
Ensure the key is exactly jobs at column 1, not nested under on or env.
How to prevent it
- Start from a known-good workflow skeleton.
- Validate against the workflow schema in the editor.
- Keep top-level keys at column 1.
Related guides
GitHub Actions "Unexpected value 'steps'" in CIFix GitHub Actions "Unexpected value 'steps'" in CI - a `steps` block was placed at the workflow or job-mappi…
GitHub Actions "Unexpected value 'runs-on'" in CIFix GitHub Actions "Unexpected value 'runs-on'" in CI - `runs-on` was placed outside a job, where the workflo…
GitHub Actions "No event triggers defined in 'on'" in CIFix GitHub Actions "No event triggers defined in 'on'" in CI - the `on` key is present but empty or unparseab…