No checks on github PR

Hi,

We are using GitHub, private repository, C/C++, and faced the following issue:
Steps to reproduce:

  • Create branch “Foo” and make commit 21dc35ab9e57479f53eb4035206cd3eb3238054a

  • Create PR

  • Run sonar-scanner locally

  • Analysis results appears on PR web page - OK

  • Create branch “Foo” and make commit 21dc35ab9e57479f53eb4035206cd3eb3238054a

  • Create PR

  • GitHub runs CI automatically
    switching to ‘refs/remotes/pull/102/merge’
    HEAD is now at 174cce5 Merge 21dc35ab9e57479f53eb4035206cd3eb3238054a into 896a8dc73013575f6483e04c15b1ba3c128bb0c3

  • Run sonar-scanner in scope of CI

  • No analysis results on PR web page - ERROR

Could you please suggest how to fix it?

Hi Steve,

Welcome to the community support!

You mentioned it’s a private repository so we can not access your code to try to reproduce the problem.

Could you share the logs of your Github action execution, given that it’s not sensitive?

If it’s sensitive we will discuss another way to share the logs.

It can also be useful to check if Github Actions is working as expected, you can check the Github status page to know the current status.

Thanks.

Best.

Hi Olivier,

Logs are the same.
Branches and commits are different as you see in my first message. That’s why SonarCloud can’t find the corresponding PR.