trivy Verified for current stable LTS

Trivy Command: Generate Sarif Report Output

Use for generate sarif report output with Trivy. Exact CLI syntax to generate sarif report output using Trivy.

When to use this: Use for generate sarif report output with Trivy.

Command Syntax

trivy image -f <template> -t "<@sarif.tpl>" -o <path/to/report.sarif> {image:tag}

Command Breakdown

-f
Command Option
Tool-specific option used by this command invocation.
-t
Command Option
Tool-specific option used by this command invocation.
-o
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to generate sarif report output using Trivy.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Trivy directory