Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonarcloud.io does not work without the organization key #9

Open
sean-e-dietrich opened this issue Jan 5, 2024 · 0 comments
Open

Comments

@sean-e-dietrich
Copy link
Contributor

sean-e-dietrich commented Jan 5, 2024

Some of the endpoints require an organization endpoint.

Add the ability to specify query params.

https://sonarcloud.io/web_api/api/rules?deprecated=false

Example:

docker run -it --rm \
  -v $(pwd):/mnt/reports \
  -e SONARQUBE_HOST="https://sonarcloud.io" \
  -e SONARQUBE_USER="TOKEN" \
  -e SONARQUBE_PASS="" \
  -e SONARQUBE_PROJECTS="PROJECT_ID" \
  devkteam/sonarqube-report:latest
[2024-01-05 20:59:58] INFO > Starting [] []
[2024-01-05 20:59:58] INFO > Starting to Create Report [] []
[2024-01-05 20:59:58] INFO > Creating Summary for Project ["PROJECT"] []
[2024-01-05 21:00:00] INFO > Add Summary Page to end of the report [] []
[2024-01-05 21:00:00] INFO > Looping through the projects [] []
[2024-01-05 21:00:00] INFO > Starting on the report - PROJECT [] []
[2024-01-05 21:00:00] INFO > Starting on reports [] []
[2024-01-05 21:00:15] ERROR > Error: ERROR: Client error: `GET https://sonarcloud.io/api/rules/show?key=secrets%3AS6334` resulted in a `400 Bad Request` response: {"errors":[{"msg":"The \u0027organization\u0027 parameter is missing"}]}  [] []
[2024-01-05 21:00:15] INFO > Complete [] []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant