Gitlab integration-sonarqube integration is failing - Not authorized. Analyzing this project require

Hi All,
We are trying to integrate Gitlab-sonarcube - and seeing the below issue.
Please advise how to solve this issue.

ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project SearchCatalog: Not authorized. Analyzing this project requires authentication. Please provide a user token in sonar.login or other credentials in sonar. login and sonar. password.

I have followed the steps and defined the SonarQube Token environment variable in Gitlab - added in the → Settings > CICD > variables

Attached is the screenshot for more details.

JFYI,… SonarQube version: 9.6.1.59531



Hey there.

A good initial step would be to try and use the same token on a local scan (using the SonarScanner for Maven on your local machine) to see if it’s an issue with the Gitlab environment or the token itself.