We originally setup the Sonarqube Github Integration using a Github App to enforce the Quality Gate on PRs. Since then, we have moved to using the Sonarqube Quality Gate Github Action as the former was unreliable. Now, our main branch still receives a Github Check sent to it from Sonarqube. Can this Github Check be disabled? We have a monolith repo whose Quality Gate fails on main, but we require code quality gate on pull requests. We also want to keep the Pull Request decoration comments.
I can confirm it’s not possible to disable the check being sent to your main branch.
Can you discuss what was unreliable about it?
Out of curiosity, is it failing because of Quality Gate conditions on Overall Code? It’s for this exact reason (folks ignoring the Quality Gate because it’s not actionable) that we suggest focusing on New Code in your Quality Gate. Clean as You Code & SonarQube