Sonar.login is deprecated and will be removed in the future

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) 2025.1 in my dev environment.
  • how is SonarQube deployed: zip
  • what are you trying to achieve - trying to understand the warnings.
  • what have you tried so far to achieve this - research.

I saw this warning in one of the projects that got scanned by Sonar 2025.1 in my dev environment. It says " The property ‘sonar.login’ is deprecated and will be removed in the future. Please use the ‘sonar.token’ property instead when passing a token." I wanted to understand if this sonar.login pertains to the github action step in my workflow

mvn sonar: sonar $mvnArgs -Dsonar.host.url="[https:$localhost" -Dsonar.login=*** --settings settings.xml"

If that’s the case, what would be the replacement for this?

Also, when did this deprecation of sonar.login started?

Hi,

Yes.

You’re using sonar.login in your commandline. It’s deprecated.

The warning you quoted is actually pretty clear:

Years ago: SONAR-18591

 
HTH,
Ann