How do you choose a SAST tool for production use?
IntermediateProductionMetrics, Developer Experience & Tool Selection
Answer
| Tool | Good at | Watch out for |
|---|---|---|
| Semgrep | Fast, easy custom rules, good PR experience | Cross-file analysis needs the commercial tier |
| CodeQL | Deep dataflow and taint analysis | Slower, needs a build for compiled languages, free mainly for public repos (GitHub Advanced Security otherwise) |
| SonarQube | Code quality plus security hotspots, widely known | Security depth varies by language and edition |
| Commercial (Checkmarx, Veracode, Snyk Code) | Broad language coverage, support | Cost, sometimes slow scans |
Criteria we test in a POC: language coverage, true-positive rate on our own code, scan time on our largest repo, ease of custom rules, and PR integration.
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?BeginnerWhy is SARIF useful, and how do you use it with GitHub code scanning?IntermediateHow do you choose an SCA tool?IntermediateTrivy or Grype for container image scanning?Beginner