Skip to content

docs: add SARIF output format examples to documentation #10929

Description

@a7hu-15

Description

The documentation for SARIF output format could include a complete example showing the expected output structure and how to use it with popular tools.

Suggestion

Add a section in the docs showing:

  • How to generate SARIF output: trivy image --format sarif
  • Sample SARIF JSON output snippet
  • How to import results into GitHub Code Scanning
  • How to use SARIF results with other security dashboards

Related to #3226 which tracks adding startTime/endTime to SARIF output.

Why this matters

SARIF is becoming the standard format for security tool output. Having clear examples would help users integrate Trivy into their security workflows more easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions