Yes, overriding the sonar.scm.revision should fix the problem, as this value will be taken into consideration when creating a GitHub check. Let me know if this fixes problem for you!
You can also check out this thread: SonarCloud Code Analysis Expected- onoging issues - #57 by HofmeisterAn where there is a user with a similar problem (I think) as you.
Best,
Marcin