Interview Prep/DevSecOps/Application Security Testing (SAST, DAST, SCA, Secrets)

How does SonarQube's Quality Gate work?

IntermediateConceptApplication Security Testing (SAST, DAST, SCA, Secrets)
Answer

A Quality Gate is a set of conditions on metrics; if any fails, the gate fails. The default "Sonar way" gate focuses on new code: no new bugs or vulnerabilities, new security hotspots reviewed, coverage and duplication thresholds on new code.

The scanner uploads results with sonar-scanner; CI can wait and fail the job with -Dsonar.qualitygate.wait=true. Clean-as-you-code (gate on new code only) is what keeps legacy debt from blocking every build.

All DevSecOps questions Roadmap: Security in the pipeline

More on Application Security Testing (SAST, DAST, SCA, Secrets)