Skip to content

Output formats

Format Command Intended use
Terminal kaev check Interactive local review with automatic color.
Markdown kaev report Detailed, shareable report.
JSON kaev check --format json Stable machine-readable KAEV schema.
SARIF kaev check --format sarif Code-scanning and security platforms.
JUnit XML kaev check --format junit CI test-report systems.
GitHub kaev check --format github GitHub Actions annotations.
Terminal window
kaev check --format json > kaev-result.json
kaev check --format sarif > kaev.sarif
kaev check --format junit > kaev-junit.xml
kaev check --format github

Machine-readable formats never contain ANSI color codes or progress messages. Operational errors are written to stderr.

JSON output uses schemaVersion: 1 and contains:

  • kaevVersion and generatedAt.
  • A project fingerprint without the absolute project root or service URLs.
  • scores with Project Health, nullable Security Posture, and a partial-coverage flag.
  • summary counts for findings, files, and rule states.
  • Deterministically ordered findings, source-free diagnostics, and per-rule status.
  • display, which records the applied visibility filter without changing scores or summary totals.

Finding locations are one-based, project-relative POSIX paths on every operating system. Consumers should tolerate additional fields and newly introduced rule IDs within schema version 1.

  • SARIF is version 2.1.0 and is intended for code-scanning ingestion.
  • JUnit represents checks as test cases, including pass, issue, not-applicable, skipped, and unavailable states.
  • GitHub format writes workflow annotation commands suitable for GitHub Actions.

Use the process exit code for quality gates instead of parsing rendered text.

Use kaev report to generate a timestamped Markdown file, or choose the output explicitly:

Terminal window
kaev report --output ./reports/kaev.md

KAEV does not generate PDF directly. Generate Markdown first and convert it separately if PDF is required.