Sonarcloud - using sonarqube-quality-gate-action with Sonarcloud github ation

Hi all,

Can we use Quality Gate action with [Sonarcloud Github Action]GitHub - SonarSource/sonarcloud-github-action: Integrate SonarCloud code analysis to GitHub Actions] in our Github Action workflow?

Regards,

Rick Gan Sheng Lee

My setup with Sonarcloud:

  • ALM used (GitHub)
  • CI system used (Github Action)
  • Languages of the repository: Typescript, Javascript

Hey there.

Yes – I think it will work.

No – I don’t believe it’s our recommended approach. Every push on a repository should get a GitHub Check with the SonarCloud Quality Gate.

This can be used to do things like block deployments if not all checks are passing.