Is there a way to view the Sonar badges of private Git repos?

My question is similar to this post - Exposing project badges in an enviroment that requires login, where I couldn’t able to view ([MMF-1942|Log in with Atlassian account] - Allow usage of project badges on private projects).
Do we have any solution implemented yet? Any guidance is much appreciated!!

Thanks.

Hi,

Yes, this is in current versions. (I forget what version added this, but the Jira ticket you referenced was closed in late 2021.)

Just go to Project Information in your favorite private project.

 
HTH,
Ann

1 Like

Thank you @ganncamp . I have also raised a support ticket and got the below response as the badges were broken after enabling entitlement. Sharing this information, hoping as it will be useful for others.

Existing badge URLs for private and public projects will need to be updated to use the URL generated on each project page. To assist with replacing the URLs programmatically, the following API endpoints can be used to generate the image URLs and retrieve the badge token for each project:
• api/project_badges/measure
• api/project_badges/token

Thanks.

1 Like