Which versions are you using?
-
SonarCloud (SaaS)
-
GitHub Enterprise Cloud
-
SonarCloud GitHub Action in GitHub Workflow pipeline
What are you trying to achieve?
We are trying to rebind our existing SonarCloud organization to our migrated GitHub Enterprise organization “genai-alpha” after completing a GitHub organization migration.
What have you tried so far?
Context:
-
Initially, we had a GitHub organization named “genai-alpha” successfully bound to SonarCloud.
- GitHub Actions pipelines were publishing code analysis results to SonarCloud without issues.
-
We upgraded to GitHub Enterprise Cloud.
-
During migration:
- All repositories were migrated from GitHub org “genai-alpha” to a temporary GitHub Enterprise org “genai-alpha-temp”.
-
To retain the original organization name:
-
The old GitHub org was renamed to “genai-alpha-legacy”
-
The new GitHub Enterprise org “genai-alpha-temp” was renamed to “genai-alpha”
-
This is now our active GitHub Enterprise organization used by development teams.
-
-
On SonarCloud:
-
We removed the GitHub binding from the old org (“genai-alpha-legacy”)
-
We are now attempting to bind the existing SonarCloud organization to the new GitHub Enterprise org “genai-alpha”
-
Current Issue
-
The SonarCloud GitHub App installs successfully on the new GitHub org “genai-alpha”
-
However, the binding process does not complete on the SonarCloud side
-
As a result:
-
GitHub Actions Sonar scan pipeline fails
-
Analysis results are not published to SonarCloud
-
Error Observed
On Sonar Cloud Binding the status circle keeps moving for long time and fails with error “The request cannot be processed, Try again letter“
GitHub action pipeline fails on Sonar scan with error
Error: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.11.0.3922:sonar (default-cli) on project notification-hub: Something went wrong while trying to get the pullrequest with key ‘162’: Error 500 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=genai-alpha_notification-hub&pullrequestKey=162 : {“errors”:[{“msg”:“An unexpected error occurred. Please try again later.”}]} → [Help 1]