Skip to content

CICD-487 · Workflow schema validation ​

Encyclopedia · Pipeline governance and operational management · All snippets

Previous · CICD-486 · Next · CICD-488

1. Where it fits ​

  • Placement CI validation step.
  • Prerequisites trusted policy checkout and normalized deployment events with scoped access.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
python -m jsonschema -i rendered-workflow.json schemas/workflow.schema.json
actionlint

3. How it works ​

The linter checks Actions syntax and catches a subset of expression and workflow consistency errors without starting a runner.

4. Verify the result ​

Render with a YAML 1.2 parser first and pin schema version. Verify semantics in a separate linter or actual server.

Validation syntax-validated (Bash parse). Status definitions.