Interview Prep/DevSecOps/Metrics, Developer Experience & Tool Selection

Why is SARIF useful, and how do you use it with GitHub code scanning?

IntermediateProductionMetrics, Developer Experience & Tool Selection
Answer

SARIF is a standard JSON format for static analysis results. Most scanners can output it, which lets one platform show results from many tools with a consistent UI, deduplication and PR annotations.

- run: trivy fs --format sarif --output trivy.sarif .
- uses: github/codeql-action/upload-sarif@v3
  with:
    sarif_file: trivy.sarif
    category: trivy-fs

Use a distinct category per tool, so uploads do not overwrite each other. The same files can feed DefectDojo or other ASPM tools.

All DevSecOps questions

More on Metrics, Developer Experience & Tool Selection