Skip to content

A CI gate in GitHub Actions

automate-02 · YAML

Two workflow steps make the contract a merge gate: validate with SARIF output, then upload the findings to code scanning.

Builds on: Embed the corpus runner

The declarative YAML artifact, verbatim — no code required.

- name: Validate docs
run: markdown-contract validate docs --format sarif > results.sarif
- name: Upload findings to code scanning
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
  • CI wiring (GitHub Actions)
  • --format sarif
  • exit code 1 fails the job