kyverno2sarif

Converts JSON output generated by the kyverno test command into SARIF format.

How to use the command

This is the basic command syntax to convert files:

devguard-scanner kyverno2sarif [flags]

The -i flag specifies the input file to be converted. By default, the resulting SARIF output is printed to the console. To save the SARIF output to a file instead, use the -o flag to specify the output file path and name.

  # Convert Kyverno output to SARIF
  devguard-scanner kyverno2sarif -i kyverno-results.json
 
  # Save to file
  devguard-scanner kyverno2sarif -i kyverno-results.json -o sarif.json

Options

  -h, --help            help for kyverno2sarif
  -i, --input string    Input file containing Kyverno test output (json)
  -o, --output string   Output SARIF file (default: stdout)

Options inherited from parent commands

  -l, --logLevel string   Set the log level. Options: debug, info, warn, error (default "info")