GitHub Pull Request Decoration not working with Pull request decoration did not happen warning in SQ Dev Edition


(Sageer) #1
  • SonarQube - On Prem 7.4 Dev Edition, Using a 15 day Trail Version

I setup the SQ instance in our environment and updated the Administration -> Pull Request configuration to add the Authentication Token for Github as per doc - >

The analysis goes through fine, but I get a warning message in SQ that “Pull request decoration did not happen. Please provide a Pull Request Github Authentication token in the project’s or global settings.”

I also don’t see the PR decoration in out Company Github enterprise instance.

I also looked at the Projects -> Backgroud Task -> Scanner Context, which shows the Global properties being used as part of the analysis. It shows the - sonar.pullrequest.github.token.secured=****** being set
Not sure why the token defined is not being picked up by SQ.

Global properties:

  • email.prefix=[SONARQUBE-BETA]
  • sonar.branch.longLivedBranches.regex=(origin/master)
  • sonar.core.serverBaseURL=
  • sonar.core.startTime=2018-12-18T01:43:50+0000
  • sonar.dbcleaner.daysBeforeDeletingInactiveShortLivingBranches=10
  • sonar.pullrequest.github.endpoint=
  • sonar.pullrequest.github.token.secured=******
  • sonar.pullrequest.provider=GitHub
    SonarQube plugins:
  • Mutation Analysis 1.3 (mutationanalysis)
  • SonarCSS (cssfamily)
  • PMD 3.1.3 (pmd)
  • Svn (scmsvn)
  • SonarPLSQL (plsql)
  • SonarC# (csharp)
  • Vulnerability Analysis (security)
  • SonarJava (java)
  • LDAP (ldap)
  • SonarFlex (flex)
  • SonarXML (xml)
  • Pitest 0.9.1 (pitest)
  • SonarTS (typescript)
  • SonarVB (vbnet)
  • SonarSwift (swift)
  • SonarCFamily (cpp)
  • SonarPython (python)
  • JaCoCo (jacoco)
  • SonarGo (go)
  • SonarKotlin (kotlin)
  • SonarTSQL (tsql)
  • SonarJS (javascript)
  • SonarRuby (ruby)
  • Vulnerability Rules for C# (securitycsharpfrontend)
  • Vulnerability Rules for Java (securityjavafrontend)
  • License for SonarLint 7.4 (license)
  • Git (scmgit)
  • SonarPHP (php)
  • SonarABAP (abap)

Any CLUE what I might be missing in the settings ?

(Sageer) #2

In sonar logs , I see the following ERROR message :
Configuration missing to decorate the GitHub pull request: GithubPrConfiguration{endPoint=null, repository=null, number=null, userToken=null}

(Sageer) #3

I missed passing few parameters for the PR

Its works fine after adding the missing params