We are using SonarCloud with Github for all our repos. A PR-level SonarCloud analysis is run every time a PR is created or updated. We have recently observed that sometimes SonarCloud does not return the analysis results to Github and so the PR-level check does not pass/fail but instead stays in a “pending” state forever. In the SonarCloud console, the PR state shows the results correctly.
A work-around is to submit an empty commit to the PR which re-triggers the SonarCloud analysis.
Template for a good new topic, formatted with Markdown:
- ALM used: GitHub
- CI system used: Jenkins
- Scanner command used when applicable (private details masked): N/A (Using the Github integration)
- Languages of the repository: JavaScript, Scala and others
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting): PR-level status check in Github stays in a “pending” state forever
- Steps to reproduce: Not reproducible always
- Potential workaround: Add an empty commit to the PR