Issues reported in Azure DevOps
SonarQube Cloud reports issues on your Azure DevOps pull requests.
Pull request decorations
When you run a SonarQube Cloud analysis for a pull request, each SonarQube issue is displayed as a comment on the Azure DevOps pull request. If you change the status of an issue in SonarQube Cloud, that status change is immediately reflected in the Azure DevOps interface.
Quality gate status remains in Waiting state
For Azure DevOps pull request decoration, a legacy project-level personal access token (PAT) can take precedence over the organization-level PAT. If the project-level PAT has expired or been revoked, the SonarCloud/quality gate status may remain in a Waiting state and pull request decoration may not be posted, even though the organization is correctly bound.
To clear the legacy project-level PAT:
Make sure the organization-level PAT has the Azure DevOps Code (read & write) scope.
Go to your project's Administration > General Settings > Pull Requests. If the Legacy project-level PAT detected warning is shown, select Clear project-level PAT and confirm.
Trigger a new pipeline run on the pull request and check that the decoration is posted.
After the project-level PAT is reset, pull request decoration uses the organization-level PAT. You don't need to unbind and rebind the organization or reimport the project.
Opening AI CodeFix pull requests
When AI CodeFix is enabled and both your organization and project are bound to Azure DevOps, you can open a pull request in Azure DevOps directly from a generated fix. See Opening a pull request in Azure DevOps for details.
Using the Remediation Agent
When your organization is bound to Azure DevOps, the SonarQube Remediation Agent can fix issues in your backlog, either automatically on a schedule or for issues you assign with Fix with Agent, and opens a pull request in Azure DevOps for your review. To enable it, see the Administer the Remediation Agent page; for how it behaves, see Backlog fix suggestions.
Note: Pull request remediation, where the agent fixes new issues in a failing pull request, is available for GitHub- and GitLab-bound projects. Azure DevOps supports backlog remediation.
Related pages
Last updated
Was this helpful?

