I am using sonarcloud automatic analysis in github. When we are creating a Pull Request from Dev to Staging, we can see sonarcloud status is pass, however we can see there are a lot of commits with failed status check. After clicking the link to sonar cloud for those failed one, it’s referring to the main branch analysis and not PR analysis. Is this behaviour expected ?
On your main branch (browsing the commits), do you see a green check or a red X next to those commits? Since they are considered the same commit in GitHub, the status should ultimately match (and this is expected).