Hi all,
We’re currently running SonarQube Community 9.9.3 in AKS to scan code from Azure DevOps.
We’re using SSO for users to sign into SonarQube and investigating locking down the scans within SonarQube to only those people with access to the originating project in DevOps. If we scan code from a DevOps project named “TEST”, then we only want people with access to the “TEST” project to be able to see the scan within SonarQube.
Currently, everyone with access to log into SonarQube has access to all scan information. This allows the source code to be viewable by anyone with access to SonarQube.
From looking at a scan in SonarQube, there doesn’t appear to be any way to identify which DevOps project that the code originally came from.
My first thought was to name the SonarQube project in a way that the DevOps project name would be included such as TEST-pipeline name. Then creating a tag with the DevOps project name “TEST” within SonarQube so that pipelines from that project can be identified within SonarQube. From there, hopefully we could use groups to lock down access to specific project tags.
Is this feasible? Does anyone know of a better way?