Response status code does not indicate success: 403

  • ALM used dev.azure.com
  • CI system used Azure Pipelines
  • Languages of the repository C#

Issue starts appearing on Azure pipeline during SonarCloudPrepare step.

we get error:
Failed to request and parse ‘https://sonarcloud.io/api/qualityprofiles/search?project=obfuscated&organization=obfuscated’: Response status code does not indicate success: 403 ().

Hey there.

This would indicate that the token provided to your SonarCloud Service Connection (that you’ve then elected to use in your Azure DevOps pipeline configuration) doesn’t have the correct permissions.

I would recommend using a new token generated from SonarCloud, generated by a user you’re sure has access to the project in question.

image
but the issue still exists.

While this indicates a successful connection to SonarCloud, it doesn’t mean that token has rights on the project. Did you generate a new token that is being used here, from a user you know has access to the project you’re trying to analyze?