SCM provider autodetection failed warning

I’m using Sonarqube Developer Edition Version 10.0 (build 68432)
I run the sonarscanner:
environment Net6, docker

SCM provider autodetection failed. Please use “sonar.scm.provider” to define SCM of your project, or disable the SCM Sensor in the project settings.

the azure pipline that runs the docker file doesnt send the .git folder,
so how can I overcome the warning ?

You can either disable SCM entirely (sonar.scm.disabled=true) or… make sure that the .git folder is transferred over.

Some functionality is limited without the Git folder, like detecting new lines for pull requests and assigning issues.