GitHub Actions YAML Validator
Parse workflow YAML and check basic normal-job and reusable workflow caller structure locally.
Your result will appear here…
How to use GitHub Actions YAML Validator
- Paste a workflow YAML document or load the example.
- Select Validate to check normal jobs or job-level reusable workflow callers.
- Review the scope note, then use GitHub and your repository's tests to verify events, expressions, permissions, and referenced workflows.
Example
Input / settings:
name: CI
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: npm test
reuse:
needs: test
uses: ./.github/workflows/reusable.yml
secrets: inheritOutput:
Valid GitHub Actions structure ✓ Jobs: test, reuse
When to use
- Catch YAML syntax errors before committing a workflow.
- Check normal jobs without misclassifying a reusable workflow caller as missing runs-on.
- Review a workflow draft locally without fetching actions or reusable workflow files.
Overview
Parse workflow YAML and check basic normal-job and reusable workflow caller structure locally.
Supported input
A YAML mapping with a non-empty jobs mapping. Normal jobs are checked for runs-on and selected step structure. Job-level uses marks a reusable workflow caller and must be a non-empty string; callers must not define runs-on or steps.
Output details
A list of job names when the selected structure checks pass, or specific errors. Passing is not proof that GitHub will accept or successfully run the workflow.
Limitations
- This is not GitHub's full validator. Event definitions, expression evaluation, needs dependencies, matrix values, permissions, and other job keywords are not checked.
- Reusable workflow reference syntax, file existence, access rights, input/secret contracts, and nested workflows are not validated. References are neither fetched nor executed.
- The sample's reusable workflow path is illustrative. Create and validate the referenced workflow in your own repository before running it.
Privacy and security
This tool runs entirely in your browser. Your input is never uploaded to our servers.
References
Frequently asked questions
Does this replicate GitHub's workflow validator?
No. It checks selected job structure, not all workflow events, expressions, permissions, or runner behavior.
Can I validate a job that calls a reusable workflow?
Yes. A job with a non-empty uses string is treated as a caller. It must not define runs-on or steps. The referenced workflow, allowed reference syntax, inputs, secrets, and other caller keywords are not fully validated.
Does it run or fetch the workflow?
No. Parsing and checks run in your browser. Local and remote workflow references are kept as text and are not opened or executed.
Does the example's reusable workflow already exist?
The path is illustrative. This tool cannot check whether that file exists or whether your repository has permission to use it.