Interview Prep/DevSecOps/SAST, SCA and secrets scanning in CI

SARIF upload rejected: `SARIF file is too large` / `too many results`

IntermediateTroubleshootingSAST, SCA and secrets scanning in CI
Answer

Likely causes → The tool output exceeds GitHub limits (compressed size and result count per run), usually because vendored code or every severity is included.

Diagnose →

jq '[.runs[].results | length] | add' results.sarif
ls -lh results.sarif

Fix → Exclude vendored paths, filter severity (trivy fs --severity HIGH,CRITICAL --format sarif), or split into multiple categories.

Prevent → Treat SARIF as a curated signal, not a dump; keep low-severity output as build artifacts.

All DevSecOps questions Roadmap: Security in the pipeline

More on SAST, SCA and secrets scanning in CI