Hi,
We are using SonarQube 7.4 Enterprise version and trying to use pullrequest decoration first time.
But the pull request decoration is not happening and I am seeing below warning from SonarQube UI.
Pull request decoration did not happen. Please provide a Pull Request Github Authentication token in the project’s or global settings.
I am using below sonar properties from Jenkins pipeline.
Also, do I need to create GitHub App to use PullRequest decoration, I have not created any GH app and trying to get the Sonar Analysis status back in PR checks.
A GitHub App wasn’t required at this time, but as your error indicates, you must provide a Github Authentication token in the project’s or global settings (in the UI, under project or global Administration > Pull Requests). This cannot be provided as an analysis paramter.
Don’t get too married to this setup though, as it changes a lot in v7.9 LTS.
An upgrade sooner than later is really worth your time if you want to start using Pull Request Decoration. I’m also pretty sure that this early iteration of Pull Request Decoration “just” adds issues as comments to your PR, not adding anything to your PR Checks.