Hello!
We are using GitLab. We have a group with a bunch of Java projects. In this group, you can configure a set of badges. These will be applied to all projects under this group, and they can of course use GitLab templating to make sure the correct project is being referenced.
I’ve set up a few SonarQube badges, here is an example:
https://sonar.mycompany.com/api/project_badges/measure?project=CompanyName---%{group_name}-%{project_name}&metric=alert_status&token=sqb_XXX
As you can see, I use the template variables group_name
and project_name
to make sure I reference the correct project. Note that our SonarQube is shared among sibling companies in our organization, so that’s why we also prefix the projects with CompanyName---
.
Now, I was first under the impression that the badge token was somehow connected to my user and therefore had access to all projects I have access to. But apparently, it’s a unique token for each project.
I would love to be able to generate a token (under my user, for example), that have access to all the projects I have access to. So we can use that in our group-level badges.
Is this possible in any way? If not, is it something that could be added?