I was able to replicate the behaviour you specified. This behaviour is only observed when the GitHub actions pipeline sets the JAVA_HOME variable prior to executing the SonarCloud action. (This is done by the ‘Set-up JDK’ step in the set-up@stockiNail shared).
We will be releasing a bugfix for this soon. I’ll notify you in this thread when it is released.