Interview Prep/DevSecOps/Rapid-Fire Tool Questions

Semgrep command to scan with OWASP rules and fail on findings?

BeginnerProductionRapid-Fire Tool Questions
Answer
semgrep scan --config p/owasp-top-ten --error --sarif --output semgrep.sarif

--error returns a non-zero exit code when findings exist. In Semgrep AppSec Platform pipelines, semgrep ci uses the policies configured centrally and scans only the diff on PRs.

All DevSecOps questions

More on Rapid-Fire Tool Questions