- ALM used ( Azure DevOps)
- CI system used ( Azure DevOps)
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
we have followed below steps for PR integration setup : Driving continuous quality of your code with SonarCloud | Azure DevOps Hands-on-Labs
Kindly suggest me to resolve this issue
Thanks in advance
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.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.