Scan with SARIF output

Output scan results in SARIF format for CI/IDE integration

trivy image --format sarif --output results.sarif myimage:tag

tool
trivy15 commands
tags
trivysecuritysarifci

More trivy commands

  • trivy config .

    Scan IaC config files for misconfigurations

  • trivy image --severity HIGH,CRITICAL myimage:tag

    Show only HIGH and CRITICAL vulnerabilities

  • trivy image --ignore-unfixed myimage:tag

    Skip vulnerabilities that have no fix available

  • trivy sbom ./sbom.json

    Scan a Software Bill of Materials file for vulnerabilities

  • trivy fs --severity HIGH,CRITICAL .

    Scan a local directory for vulnerabilities and misconfigs

all 15 trivy commands