Skip to content
cosmodev ~/tools/gh-actions-validator

GitHub Actions-validerer

Validators & Testers

Sjekk en workflow-YAML før du pusher: on-form, jobs, runs-on, steg med run eller uses og needs-grafen inkludert sykkeldeteksjon – hvert problem rapporteres på sin sti. Kjører lokalt i nettleseren din.

Prøv:

(Dokumentasjon på engelsk)

What it does

Structurally validates a GitHub Actions workflow before you push it and wait out a failed run: the on: block (string, list or mapping, with known event names), the jobs mapping (non-empty, each job a mapping), runs-on presence (unless the job delegates to a reusable workflow via uses), steps that each do exactly one of run or uses, and the needs graph — unknown references and cycles, with the full cycle chain named. YAML syntax errors surface with the parser’s message. Everything runs locally in your browser.

How to use it

  1. Paste a workflow into Workflow YAML (left), or tap a chip — Valid workflow, Broken rules, needs cycle — to see each verdict. Sample loads a complete two-job workflow; Clear empties the box.
  2. The verdict appears on the right: green when the structure holds; otherwise every issue with its path and a plain-language message.
  3. Copy share link encodes the workflow in the URL.

Examples

The Broken rules chip produces three issues at once:

$.on[1] — unknown event “shoved” · $.jobs.build.needs[0] — unknown job “ghost” · $.jobs.build.steps[0] — step needs run or uses

The needs cycle chip names the chain:

$.jobs — needs cycle: a -> b -> a

A job using a reusable workflow skips the runs-on check:

jobs: { deploy: { uses: org/repo/.github/workflows/w.yml@v1 } } — valid without runs-on.

What is checked (and what deliberately is not)

Checked Not checked
root shape, on and jobs presence action versions/pinning
known event names, branches shape expression validity (${{ }})
runs-on (or reusable uses) runner label availability
steps: run xor uses, non-empty duplicate YAML keys, permissions
needs: known targets, acyclic secrets and environment references

The tool catches the structural class of failures — the ones that error before your code runs. Semantic checks (does the action exist at that ref) still belong to the platform.

Kildekode14 språk

100 % på klientsiden · dataene dine forlater aldri nettleseren. Nyttig? Del det med en kollega.