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.
More on Metrics, Developer Experience & Tool Selection
Which DevSecOps metrics matter, and which are vanity metrics?BeginnerHow do you measure the friction security tools add for developers?IntermediateHow do you give developers security feedback as early as possible?BeginnerHow do you choose a SAST tool for production use?IntermediateHow do you choose an SCA tool?IntermediateTrivy or Grype for container image scanning?Beginner