Sonar does not leave comments to PRs while having an active Token

Hello Sonar Team,

I am facing the following issue: sonar does not leave comments on PRs although I have an active token with the R/W permissions at code section. What would be the issue?

Looking forward to your response.

Sincerely,
El

Hi El,

Which devOps platform are you using?

How do you know your token is active?

Does analysis complete successfully? Are there any analysis warnings in the SonarQube Cloud UI?

 
Ann

Hello Ann,

thank you for your response.

I am using Azure DevOps as platform. I have created the token through my Azure personal account with a custom date of expire - many months ahead, and I have verified that I am using the correct permissions as well.

The scanning of different projects completes successfully but it leaves no comments during the last month - where it used to do so.

Thanks,
El

Hi El,

This sounds like an expired token.

Can you go into Administration → General Settings → Pull Requests and see if there’s a token specified there? If so, it’s the one being used at PR decoration time & is likely expired. If you delete it, then PR decoration should fall back to the global token with the custom expiration date.

 
HTH,
Ann