Template for a good new topic, formatted with Markdown:
- ALM used: Bitbucket
- CI system used AWS CodePipeline
- Scanner command used when applicable: sonar-scanner -Dsonar.organization=$Organization -Dsonar.projectKey=$Project -Dsonar.sources=./env/deploy/ -Dsonar.host.url=$HOST
- Languages of the repository: XML, JS
- Error observed:
I need to get the quality gate status from the Web API.
I followed this documentation awsdoc to setup the AWS CodeBuild
I’m not able to get the project status
- Steps to reproduce
Run the following command:
curl https://sonarcloud.io/api/qualitygates/project_status?projectKey=$Project >result.json
The result is:
So I tried with
curl --user USER:PASS https://sonarcloud.io/api/qualitygates/project_status?projectKey=$Project >result.json
where the USER and PASS are the same values of the User that created the organization and the project
The result is empty, I mean 0 Byte returned.
I saw in the API doc that the user need permissions and it has those pemissions
What I’m doing wrong?