Coverage not showing for Github PRs

We have a Python repository on GitHub that we set up with SonarCloud using GitHub actions.
The sonarcloud action is correctly uploading the coverage report for the main branch, and we can see line-by-line coverage too.

However, coverage is not showing in PRs, neither in the summary page nor in the Code page (actually, no code is visible):

Same goes for the comment in the PR on GitHub:


Welcome to the community!

Can you share/point to your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.


Hi Ann,

It appears the reason was simply that the PRs didn’t have any changes to the code that is tracked for coverage! This is solved now.

1 Like