Exposing project badges in an enviroment that requires login

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

Setup is to use Force user authentication = true

  • what are you trying to achieve

We would like to use the project badges in our internal github as well. This is however only possible if the user looking at github currently has a session going on the sonarqube server.
We’re looking for best practices here.

  • what have you tried so far to achieve this

We’re aware that we could create a seperate user and generate an token for it and share that with all the teams - seems to kind of defeat the purpose of making the instance private though.
As far as we’re aware we can’t generate tokens with more granular permissions (like only allowing to receive the badges or something similar)

Hey there.

Unfortunately, what you’re describing in any form (generating a token for a separate user) to view badges is not currently possible. Hopefully someday (MMF-1942 - Allow usage of project badges on private projects) but not today.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.