ALM: GitHub (private repository, SonarQube Cloud GitHub App)
CI system: GitHub Actions
Scanner command (SonarSource/sonarqube-scan-action, sonar-scanner-cli 8.1.0; project key and organization are set in sonar-project.properties, masked here):
sonar-scanner \
-Dsonar.coverage.exclusions=**/* \
-Dsonar.scanner.javaOpts=-Xmx6g \
-Dsonar.javascript.node.maxspace=16384 \
-Dsonar.qualitygate.wait=true \
-Dsonar.qualitygate.timeout=300
Languages: TypeScript and JavaScript (monorepo), with some CSS, Python and shell
Project URL: private project; I can share the project key, PR keys and analysis IDs privately.
Error observed
When a pull request’s quality gate fails because of new_reliability_issue_severity (our custom gate has new_reliability_issue_severity > 10, i.e. MEDIUM or worse), SonarQube Cloud does not decorate the pull request. It posts no summary comment and no “SonarCloud Code Analysis” check run.
The gate result itself is correct. The scanner fails as expected:
06:36:36.083 INFO ------------- Check Quality Gate status
06:36:42.503 ERROR QUALITY GATE STATUS: FAILED - View details on https://sonarcloud.io/dashboard?id=<masked>&pullRequest=<masked>
06:36:42.903 INFO EXECUTION FAILURE
api/qualitygates/project_status?analysisId=<masked> for that analysis returns:
{
"status": "ERROR",
"conditions": [
{
"status": "ERROR",
"metricKey": "new_reliability_issue_severity",
"comparator": "GT",
"periodIndex": 1,
"errorThreshold": "10",
"actualValue": "15"
}
]
}
The background task for that analysis shows no warning about decoration.
Passed gates are decorated as usual. Failed gates on other conditions are decorated too, with the “Quality Gate failed” comment and a failing check run.
We had 28 failed PR analyses between 2026-10-14 and 2026-10-22:
- 26 failed on
new_reliability_issue_severity, sometimes together with other conditions. None was decorated. In 7 of them it was the only failed condition; the issues behind those were code smells with a MEDIUM reliability impact (S8786, S6853). - 2 failed only on
new_security_ratingandnew_software_quality_security_issues. Both were decorated.
Before we switched to this gate on 2026-10-12, failed PRs were decorated normally.
Steps to reproduce
- Use a quality gate with the condition “Reliability Issue Severity on New Code” is greater than 10.
- Open a pull request that adds one code smell with a MEDIUM reliability impact (for example, typescript:S8786), and no other gate violation.
- Analyze it with
sonar.qualitygate.wait=true. The scanner reports FAILED, but the pull request gets no comment and no check run.
Potential workaround
None found short of removing the condition. new_reliability_rating does not replace it, because it ignores code smells with a reliability impact, and there is no impact-based reliability rating metric to use instead. For now we read the result in the CI log.