GitHub: SonarCloud Code Analysis Expected — Waiting for status to be reported

Template for a good new topic, formatted with Markdown:

  • ALM used: GitHub
  • CI system used: N/A
  • Scanner command used when applicable: N/A
  • Languages of the repository: N/A
  • Only if the SonarCloud project is public, the URL: N/A
  • Error observed:

Our GitHub pull requests are prevented because we require SonarCloud analysis before merging. I can see in SonarCloud that the PRs are being analyzed, but their statuses are not making it back to GitHub. All we see is “SonarCloud Code Analysis Expected — Waiting for status to be reported”

  • Steps to reproduce
  1. Make a PR
  2. Wait forever
  • Potential workaround

Admin has to merge the PR after checking SonarCloud’s report manually.

Hey there.

Is your project bound and is Automatic Analysis enabled?

  • Go to your project’s Administration > Analysis Method page and turn on Automatic Analysis.
  • The Analysis Method page will display a compatibility check, so you are aware of our recommendations for your specific project.

Yes, and yes. The error is sporadic. But when it fails, it fails gloriously. For example, yesterday a PR got an update from SonarCloud, so we were able to merge it. The analysis always appears in SonarCloud Dashboard, though.

Hm. That’s weird. Let me reach out to you for some private details so I can look up in the backend.

The issue was resolved by unbinding/rebinding projects after a GitHub org name change.