GitHub Actions composite action "jobs is not a valid key"
Composite actions are not workflows. Their action.yml uses runs.using: composite with a steps list. A jobs key is invalid because composite actions run inside a single job, not orchestrate jobs.
What this error means
A composite action fails to load with a schema error around an unexpected jobs key.
github-actions
Error: 'jobs' is not a valid key for a composite action.
Composite actions define runs.using: 'composite' with a 'steps' list, not 'jobs'.Common causes
Workflow syntax in an action manifest
The author used jobs (workflow syntax) inside a composite action.yml.
How to fix it
Use runs.steps
- Replace the jobs block with runs.using: composite and a steps list.
- Give each run step a shell.
action.yml
runs:
using: composite
steps:
- run: echo "hello"
shell: bashHow to prevent it
- Remember composite actions are step lists, reusable workflows are job lists.
- Lint action.yml against the composite schema.
Related guides
GitHub Actions composite action "shell is required"Fix GitHub Actions composite-action error where a run step is missing the required shell field.
GitHub Actions composite action inputs not passedFix a GitHub Actions composite action whose inputs are empty - composite steps must reference inputs via the…
GitHub Actions reusable workflow uses must be a valid pinned referenceFix the GitHub Actions error where a reusable workflow uses value is not a valid owner/repo/.github/workflows…