AzureDevOps "SonarCloud/quality gate" status check is not being updated in the pull request anymore

Hi,

Description:
We have a SonarQube paid plan, we enabled a policy into our AzureDevOps branch that waits for the status check of “SonarCloud/quality gate”, so the PR cannot be merged until this status has green state.

Last week the “Run Code Analysis” step into our AzureDevOps pipeline started to fail, after re-setting our organizational Personal Access Token from AzureDevOps into Sonar (it was shown as “invalid”) the run code analysis got fixed and running fine and we can see the PR’s into SonarQube web, but, the status check for “SonarCloud/quality gate” into our AzureDevops PR’s never get’s updated.

This is an example of a today’s run that the sonar status didn’t get updated, taskID: AZaiIlHo-15keZjti9nh

Note: we don’t have any PAT at project level, just organizational one.

This is a blocker to our automated process.

Steps to reproduce:

  1. Create a PR into ADO
  2. The sonar pipeline get’s triggered and it run code analysis
  3. Build validation status of Sonar Pipeline get’s updated into PR
  4. Status check for “SonarCloud/quality gate” should getupdated into PR <— issue (Not being updated)

Expected:
After the Sonar pipeline finishes, it should report build validation status and status check for “SonarCloud/quality gate” into AzureDevOps Pull request.

Actual:
After the Sonar pipeline finishes, just the build validation status is getting reported to the pull request, status check for “SonarCloud/quality gate” is not being reported

Another taskID: AZanjLREaYHSqYCoCsiC

I’ve sent you a private message to collect some additional details.

1 Like

@npallares updated the PAT to be one with read/write permissions and the problem was solved!