Version: SonarQube Enterprise 8.9.9 LTS (Build 56886)
We recently upgraded from Developer Edition to Enterprise to take advantage of the ability to have multiple GH integrations. We have an existing self hosted GH Enterprise environment, and are now adding a GitHub.com cloud environment as well. We have an existing PR decoration integration setup for the GH Enterprise environment and PR decoration is working as intended.
We recently tried to add the new integration for the GH.com environment only to have PR decoration for the pre-existing GH Enterprise projects begin failing with “Unable to decorate the pull request. Please configure the pull request properties in the project administration.”
A quick check of the projects found that the Pull Request Decoration configuration was not set for each project. Projects are created in SQ by a pipeline job running in Jenkins, and the setting for PR decoration was not something being set in the pipeline.
As a test we removed the newly created PR decoration integration for the GH.com environment. Once removed, leaving only the original GH Enterprise integration present, PR decorations resumed functioning for existing projects.
From what we have observed it appears that as long as there is only a single PR decoration integration present, SQ will use it by default. However, adding a second integration results in a need for the PR decoration configuration to be be explicitly declared/configured.
Ideally we would like to be able to set the PR decoration key value in the pipeline by adding it to the created sonar-project.properties file, but thus far have been unable to discover this variable key name. Normally the SQ variable key name is listed directly below the item within the SQ UI, however this is not the case with PR decoration configuration. I was also unable to locate any mention of what the variable key name is in current 8.9.9 documentation.
Any help on this would be appreciated as we really wish to avoid having to go through the UI and manually updating hundreds of projects.