We integrate with SonarQube Cloud by reading issues, security hotspots, pull requests and project metadata through the Web API, and we would like our users to use a Scoped Organization Token instead of a personal access token.
The gap
There is no way to create a read-only scoped token that covers all current and future projects. Per the expanded-scope announcement: organization-wide tokens only offer Administer organization, Execute analysis, and Create projects; while Browse is only available with ‘Selected projects’. Sonar staff replied that org-wide read access is “a fair ask” and would be passed on. An earlier staff reply in the original thread mentioned plans for Browse and for selecting all projects, but I could not find a dedicated request, so this is one.
Why it matters
For an organization with thousands of projects, a token limited to ‘Selected projects’ has to be edited every time a project is onboarded. In another user’s report in that thread, selecting hundreds of projects returned an HTTP 500. Today the only way to get org-wide read access that includes new projects is a personal access token for a dedicated service account.
Requests
- An organization-wide Browse (read-only) permission for scoped organization tokens, applying to current and future projects.
- Or an ‘all projects, including future ones’ option for the project-level permissions.
Thanks!