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.
More on Application Security Testing (SAST, DAST, SCA, Secrets)
What is SAST and what are its strengths and limits?BeginnerWhat is DAST and how does it differ from SAST?BeginnerWhat is IAST and RASP?IntermediateWhat is SCA and what does it scan?BeginnerHow does a SAST tool find a SQL injection using taint analysis?AdvancedHow do you write a simple Semgrep rule?Intermediate