The SonarCloud team has recently deprecated the use of sonar.login in sonar-scanner. The notification says it was deprecated on July 11th, but it was actually rolled out today:
https://community.sonarsource.com/t/removing-sonar-login-from-sonarqube-cloud-on-june-11-2026/182937
This is causing tasks to fail with an Not authorized message:
ERROR: Error during SonarScanner execution
ERROR: Not authorized or project not found. Please check the 'SONAR_TOKEN' environment variable, the 'sonar.projectKey' and 'sonar.organization' properties, or contact the project administrator to verify the token's permissions.
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
ERROR in /opt/resource/out : line 308 with exit code 2
A workaround is possible by adding sonar.token: ((sonarcloud-token)) to the additional_properties field, however a code fix would be ideal.
The SonarCloud team has recently deprecated the use of
sonar.logininsonar-scanner. The notification says it was deprecated on July 11th, but it was actually rolled out today:https://community.sonarsource.com/t/removing-sonar-login-from-sonarqube-cloud-on-june-11-2026/182937
This is causing tasks to fail with an Not authorized message:
A workaround is possible by adding
sonar.token: ((sonarcloud-token))to theadditional_propertiesfield, however a code fix would be ideal.