Started getting 403 error in Azure Pipeline task

  • ALM used - Azure DevOps
  • CI system used - Azure DevOps

In the Azure build pipeline task “Prepare Analysis Configuration” we suddenly started getting a 403 error when it attempts to download the quality profile

2022-09-12T22:22:21.9301621Z 22:22:21.924  Downloading from https://sonarcloud.io/api/qualityprofiles/search?project=XXX&organization=XXX...
2022-09-12T22:22:22.0454124Z ##[error]22:22:22.033  Failed to request and parse 'https://sonarcloud.io/api/qualityprofiles/search?project=XXX&organization=XXX': Response status code does not indicate success: 403 ().

However, the pipeline has not changed in a long time, and the URL indicated in the error message is totally valid and gives a 200 response in the browser when I am logged in to SonarCloud. Is there something else that might have changed? I’ve checked the usual suspects (Service Connection, Azure DevOps token) but they all appear valid and in order.

Sigh… Always double-check your double checks. The Service Connection claimed it was valid, but I generated a new token and a new Service Connection and things are working normally.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.