Welcome to the community!
I moved the post directly under the SonarCloud category. You can find the announcement with more information here. The scanner requires Java and the windows-latest image uses Java 8 by default. Please take a look at our .NET sample project for an example of how to switch to Java 11 in your pipeline.