Hello Dear Community,
I’m trying to fetch all the SCA findings from a specific portofolio.
We have SonarCloud Advanced Security and I can see that the findings are available in the GUI.
I created a “Scoped Organization Tokens” (that is not expired yet)
export SONAR_TOKEN=“”
curl -sS
-H “Authorization: Bearer $SONAR_TOKEN”
“https://api.sonarcloud.io/sca/risk-reports?component=<PORTFOLIO_ID>&type=release_risks”
→ {“message”:“Access denied”} ![]()
export SONAR_TOKEN=“”
curl -sS
-H “Authorization: Bearer $SONAR_TOKEN”
“https://api.sonarcloud.io/sca/risk-reports?component=<PORTFOLIO_NAME>&type=release_risks”
→ {“message”:“SCA feature is not enabled.”} ![]()
export SONAR_TOKEN=“”
curl -sS
-H “Authorization: Bearer $SONAR_TOKEN”
“https://api.sonarcloud.io/sca/risk-reports?component=<PROJECT_ID>&type=release_risks”
→ Working ![]()
Does it looks like it’s not possible to access SCA findings from a portfolio ?
Kind Regards,
Thomas