In azure Pipelines, when we run a build pipeline that integrates with sonar cloud, it’s common for a personal access token (PAT) to be automatically created. is it expected behavior.
Those tokens are automatically created in the Sonar cloud account.
Whenever the user runs the pipeline in Azure automatically, his or her sonar cloud account tokens are created.
If you run the pipeline, the user PAT (access token) created it in your account, or if I run the pipeline in my account, the user PAT (access token) created it in my account.
SonarQube asks you to explicitly generate a token, while SonarCloud generates one as soon as you start the onboarding tutorial for a new project. They are simply not aligned at this stage.
You can’t avoid this token being created when you create the project via the UI. You will have to clean it up (delete it) if you don’t plan on using it.
However, your feedback is well received about the noisy token generation.
Hello and thank you for your input on this. It’s much appreciated.
Yes, this is “expected” behavior, it happens for every azure/sonarcloud integration and it’s not a mistake on your side.
As Colin explained, we need to generate a token when you go through the tutorial so we can display it on the UI and make the onboarding smooth for people who are not familiar with this.
However, we believe this can be improved so we don’t stack dozens of tokens if you don’t use them. We’ve added it in our roadmap.