We are using Gitlab cloud to run our pipelines. We have sonar cloud integrated in the pipelines. The Gitlab stage for Sonarcloud Linting is called
Lint. As you can see in the image below, when I raised the merge request, it ran a pipeline exclusively for the merge request and the
Lint stage passed with no issues. However, once the merge request got approved(without further changes), I simply merged it to master. However, the same code, now failed with quality gate on the pipeline. This is strange. Can someone explain the reason for this behaviour?
We checked the quality gate configuration on SonarCloud and it applies the same rules for all branches (screenshot below):