Hey there.
Indeed, instead of being written in Javascript, the sonarsource/sonarcloud-github-action
action is Docker-based which is only supported on Linux runners.
You might be able to take some inspiration from an example like this, which includes manually downloading and executing the sonar-scanner
.