Skip to content

SonarCloud has deprecated the sonar.login, causing concourse-sonarqube-resource to fail during execution #108

Description

@cpasquini

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.

Metadata

Metadata

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions