Thanks for your reply.
I have just tried to run scanner with -Dsonar.scm.revision=${{github.event.pull_request.head.sha}}
and it worked as expected.
Not sure if it is connected by we are building PRs from forks.
1 Like