Hi, I may be misreading the docs regarding setting up a MonoRepo with Bitbucket cloud. Both the instructions and the blog post mention adding the project key to your CI pipeline.
Using bitbucket pipes, I cannot see anyway to do this, the only open I get is a unique sonar-token for each project? I was expecting a single access token and then a configurable key, this would be much easier to configure in the build pipeline as we could use the folder name, etc as the key. Currently we have to manually add a repository variable for each sonar project to store the unique key.
Have I missed something.
Partially answering my own question:
With the sonar scanner, you can use the same SONAR_TOKEN value for all projects and specify a different project key, it would be helpful if the documentation reflected this or you were provided a single token for all projects?
SonarCloud token. It is recommended to use a secure repository or account variable. And in this case there is no need to specify this variable in the bitbucket-pipelines.yml file.
So using a variable defined at the workspace level should be fine.