Skip to main content

:::tip Looking for the recipe? See Workflows → Gate CI on quality for the task-driven guide. This page is the reference. :::

zuit report

zuit report <INPUT> [OPTIONS]

Use zuit report to re-render a previously saved JSON report in a different format. This lets you produce Markdown summaries, upload SARIF to a security dashboard, or view a historical result in the terminal — all without running a new scan.

When to use this​

  • Convert a CI-generated JSON report to Markdown for a pull request comment.
  • Produce a SARIF file from a saved scan for upload to GitHub Advanced Security or another SAST platform.
  • View an archived report in a more readable format.

Arguments​

ArgumentDescription
<INPUT>Path to a JSON file saved by zuit analyze --format json. Required.

Options​

FlagTypeDefaultDescription
--format <FORMAT>json | terminal | markdown | sarif | checkstyle | junitterminalTarget output format.
--output <FILE>pathstdoutWrite output to <FILE> instead of stdout.
--no-colorflagoffDisable ANSI colour in terminal output.
--hyperlinksflagoffEmit clickable file-path links in terminal output (requires a supporting terminal).
-h, --helpflagPrint help.

Examples​

View a saved report in the terminal:

zuit report report.json

Convert to Markdown:

zuit report report.json --format markdown

Convert to SARIF and save to a file:

zuit report report.json --format sarif --output results.sarif

Post a Markdown summary as a GitHub PR comment:

zuit report report.json --format markdown | gh pr comment --body-file -

See also​