Hi team,
I am experiencing an issue with getting Sonarcloud to fail a PR in GitHub when a quality check fails. Sonarcloud correctly reports that there has been code added that is a duplication of other code. However, the CI reports that it is successful and allows a merge. The Sonar code analysis has been set up to be required to pass in the settings of the repo.
Here is the failure message in GitHub
And here is the CI results
- ALM used: GitHub
- CI system used: GitHub Actions
- Languages of the repository: Java
- SonarCloud project is private
- Steps to reproduce
- duplicate a controller in a backend repo to trigger sonarcloud’s duplication logic to execute
- submit a pr with duplicate code
- All tests will pass and allow merge, but sonarcloud will report a quality gate failure


