We are integrating sonarcloud with gitlab; all our repositories are private. We are using a token generated by us, the same for all the projects and that token is defined as a group variable on gitlab. For some reason the token stored on sonarcloud is changing and the sonar check job fails due to authentication failure, as expected.
We tried to solve the issue overriding the token on sonarcloud but for some reason gets changed to a random token again
As we cannot figure out why this is happening, could you please indicate any reasons you believe might be causing this issue?
CI system used
- GitLab CI/CD
Scanner command used when applicable
- Maven integration as described in the documentation
- Environment variables in GitLab CI/CD at group level (same for all projects)
Languages of the repository
- The execution of the sonar check on the pipeline is behaving as expected because the environment variable SONAR_TOKEN is not different for the Token defined in sonarcloud web UI
- Delete the project from the organisation on sonarcloud and create the project again (as you can imagine we can’t go on like this)
Any ideas of what can be causing this issue?
Thank you very much