We are trying to integrate Sonar cloud PR decoration in our source code with our existing access token of azure devops user, but it is not working and I can see code fails on sonar UI but still not display those failure reports on Azure devops repo.
When I try to create new token of azure devops PAT with my user & new Sonar cloud token then Pull request integration works fine and generate code quality gate reports whether any issues with comments
It’s a little unclear at which step things are failing, since you mentioned both the SonarCloud token and the Azure DevOps token. Can you confirm exactly what’s failing? Is it the analysis, the decoration of your Pull Request, something else? Any screenshots or logs you can share would be very helpful.
@Colin, Thanks for the reply. We found the issue our Azure DevOps PAT token permissions are not set up properly. After adding proper permission in code “Read & Write” in azure DevOps PAT token then sonar cloud PR decoration works perfectly now we can see comments & quality gate details in the Pull request.