Different permissions for short- and long living branches

Must-share information (formatted with Markdown):

  • SonarQube 7.7 , Scanner 4.0
  • I want to grant scan permissions for developers on short living branches, so they can fix their problems. But the long living branches should be reserved for the CI builds which run strict controlled environment.
  • Nor the documentation neither Google told me how to do start.

Hi,

Welcome to the community!

Permissions are granted at the project level to all the pieces of the project, so you’re not going to be able to do what you’ve asked about. OTOH, what you can do is set your CI/CD system up to automatically analyze the SLBs so developers don’t have to remember to fire the analysis, they just

  • commit
  • get coffee
  • check SLB analysis in SonarQube

 
HTH,
Ann

It could be great to have this feature.
We want to be able to do scans at short-lived local branches.
But we don’t want to enable scanning from local to the main branch because it might pervert the results from local.