Clarify if I need the quality gate GH action or it’s covered by the sonar action
added both actions to the WF (sonarqube-quality-gate-action, sonarqube-scan-action )
Hi Community. I hope someone can clarify if sonarqube-quality-gate-action action is needed or not in my workflow if I already have sonarqube-scan-action ?
I’m asking because the scan action already has the quality gate step, it comments the results to the GitHub PR and breaks the WF if there is a problem. So having a separate quality-gate action seems unnecessary. Ty.
sonarqube-quality-gate-action works well if you want to break the build of your target branches on a QG failure (and not just your PRs), but it’s not strictly necessary.
Thanks for the answer, but I’m still a bit confused.
Technically it’s possible to add sonarqube-scan-action to the build to any branch regardless of the PR. Eg if there is a merge/rebase etc. So it will also break the build there…(if I pass the qgate flag)
I thought sonarqube-quality-gate-action was more about the ability to split the scan and the Q gate into two different parts of the lifecycle of a change.