Log in to your harness - The Modern Software Delivery Platform® account to give feedback

Feature Requests

Anonymous

Feature Requests for Harness. Select 'Category' based on the module you are requesting the feature for.
Add organization parameter support for SonarCloud Quality Gate retrieval in STO
Currently, the Harness STO SonarQube step fails to retrieve the Quality Gate status when integrating with SonarCloud (the SaaS version of SonarQube). During the pipeline execution (both in Extraction and Ingestion modes), the step successfully fetches vulnerabilities and code smells but consistently fails at the final Quality Gate check with the following error: Root Cause: Through debugging and confirmation from Harness Support ( https://support.harness.io/hc/en-us/requests/110004 ), we identified that the STO runner makes the following API call to fetch the Quality Gate: GET /api/qualitygates/get_by_project?project=<project_key> While this works for self-hosted SonarQube instances, SonarCloud’s API strictly requires the organization query parameter alongside the project parameter. When testing manually via curl, the API call succeeds only when formatted like this: GET /api/qualitygates/get_by_project?organization=<org_key>&project=<project_key> Because the Harness runner omits the organization parameter, SonarCloud rejects the request with an HTTP 400 error, which the runner misinterprets as a permissions issue. Expected Behavior: The Harness STO SonarQube step should support passing an organization parameter (either by extracting it from the connector/settings or providing a dedicated input field in the step configuration) and append it to the /api/qualitygates/get_by_project API call when querying SonarCloud servers. Workarounds Attempted: Verified Sonar token has full Administer/Quality Gate permissions at both the Project and Organization levels. Tested both Extraction and Ingestion modes. Tested passing the organization parameter in the settings/tool blocks. Rolled back to older runner tags (e.g., 1.68.0). None of the above resolved the issue, as the parameter is hardcoded out of the specific API call.
0
·
Security Testing…
Load More