# GitHub PullRequest Decoration

**URL:** <https://community.sonarsource.com/t/github-pullrequest-decoration/23065>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, scanner\
**Created:** [April 15, 2020, 2:49am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration/23065 "2020-04-15T02:49:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBhogireddy](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@JBhogireddy](https://community.sonarsource.com/u/JBhogireddy)\
**Post date:** [April 15, 2020, 2:49am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration/23065/1 "2020-04-15T02:49:49Z")

</div>

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.

withSonarQubeEnv(‘SonarQubeEE’) {  
sh ‘$SONARSCANNER/bin/sonar-scanner -Dsonar.projectKey=soanr-decorartion   
-Dsonar.projectName=soanr-decorartion   
-Dsonar.sources=account/src   
-Dsonar.java.binaries=account/build/   
-Dsonar.pullrequest.github.repository=scm-og/jenkins-upgrade-test   
-Dsonar.pullrequest.branch=origin/test-sonar   
-Dsonar.pullrequest.key=$PR\_NUMBER   
-Dsonar.pullrequest.base=master   
-Dsonar.pullrequest.github.endpoint=“GitHub API”   
-Dsonar.pullrequest.github.token.secured=GH\_ACCESS\_TOKEN’

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.

Please help me to fix this issue.

Regards,

Jagadeesh

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [April 15, 2020, 10:03am UTC](https://community.sonarsource.com/t/github-pullrequest-decoration/23065/2 "2020-04-15T10:03:11Z")

</div>

Hey Jagadeesh,

The minimum supported version of SonarQube is _v7.9 LTS_. You should upgrade at your earliest convenience.

Documentation for Pull Request Analysis in _v7.4_ is located here: [https://docs.sonarqube.org/7.4/analysis/pull-request/](https://docs.sonarqube.org/7.4/analysis/pull-request/).

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.

---

<div class="post-metadata">

**Author:** ![JBhogireddy](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@JBhogireddy](https://community.sonarsource.com/u/JBhogireddy)\
**Post date:** [April 15, 2020, 2:11pm UTC](https://community.sonarsource.com/t/github-pullrequest-decoration/23065/3 "2020-04-15T14:11:42Z")

</div>

Hello Colin,

Thanks a lot for the update. I have the TOKEN added from Global Settings in Sonar UI but for some reason its not working.

As you recommended, I will try to upgrade Sonar to latest version and then try implementing Sonar Decoration.

Could you please share me the sonar upgrade documentation? Also, Can I upgrade to latest version of the Sonar from 7.4. Please confirm.

Regards,

Jagadeesh
