Git Pull request decoration problem

  • which versions are you using - 7.6 community upgrade to 7.8 developer
  • what are you trying to achieve - github checks should work
  • what have you tried so far to achieve this - description below

i am using version 7.6 community, try to upgrade to 7.8 developer and start using Pull request decoration. Unfortunately i have one error.

currently using sonarscanner


dotnet sonarscanner begin /k:“MyProj”
/d:sonar.login=“MyToken” /v:“1.0.1”
/d:sonar.pullrequest.branch=testBranch /d:sonar.pullrequest.key=45 /d:sonar.pullrequest.base=master /d:sonar.pullrequest.provider=github
/d:sonar.pullrequest.github.repository=MyCompany/MyRepo /d:sonar.pullrequest.github.endpoint=


dotnet build C:\root**\GP.MyProj.sln

On the End

dotnet sonarscanner end /d:sonar.login=“MyToken”

Everything without pull request decoration work great.

On UI i can see one warning

Pull request decoration did not happen. No revision information available

In section “Pull Requests” i have chosen provider (GitHub)
and I fill “Integration with GitHub” section


 2019.07.04 14:03:18 WARN  ce[AWu9S8b6cpaaYPeod9-P][c.s.C.C.D.J] Unexpected exception while clearing reviews
 org.kohsuke.github.GHException: Failed to retrieve h.ttps://******55hf******************fdg67gv
 	at org.kohsuke.github.Requester$PagingIterator.fetch(
 	at org.kohsuke.github.Requester$PagingIterator.hasNext(
 	at org.kohsuke.github.PagedIterator.fetch(
 	at org.kohsuke.github.PagedIterator.hasNext(
 	at com.sonarsource.C.C.D.K.G(Unknown Source)
 	at com.sonarsource.C.C.D.J.A(Unknown Source)
 	at com.sonarsource.C.C.D.J.A(Unknown Source)
 	at java.util.Optional.ifPresent(Unknown Source)
 	at com.sonarsource.C.C.D.J.A(Unknown Source)
 	at com.sonarsource.C.C.Z.A(Unknown Source)
 	at java.util.Optional.ifPresent(Unknown Source)
 	at com.sonarsource.C.C.Z.B(Unknown Source)
 	at com.sonarsource.C.C.Z.A(Unknown Source)
 	at org.sonar.ce.async.SynchronousAsyncExecution.addToQueue(
 	at com.sonarsource.C.C.Z.A(Unknown Source)
 	at java.util.Optional.ifPresent(Unknown Source)
 	at com.sonarsource.C.C.Z.finished(Unknown Source)
 	at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.executeTask(
 	at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.finished(
 	at org.sonar.ce.task.step.ComputationStepExecutor.executeListener(
 	at org.sonar.ce.task.step.ComputationStepExecutor.execute(
 	at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(
 	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(
 	at org.sonar.ce.taskprocessor.CeWorkerImpl$
 	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(
 	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(
 	at Source)
 	at java.util.concurrent.Executors$ Source)
 	at Source)
 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
 	at java.util.concurrent.ScheduledThreadPoolExecutor$ Source)
 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 	at java.util.concurrent.ThreadPoolExecutor$ Source)
 	at Source)
 2019.07.04 14:03:18 TRACE ce[AWu9S8b6cpaaYPeod9-P][sql] time=4ms | sql=insert into ce_task_message ( uuid, task_uuid, message, created_at ) values ( ?, ?, ?, ? ) | params=AWu9S--JTeVm-N7DMYGh, AWu9S8b6cpaaYPeod9-P, **Pull request decoration did not happen. No revision information available**, 1562248998794

When i am using new, clean instance of SQ 7.8 developer Pull request decoration work perfect .
What can I check more ?

This can happen when the appropriate SCM plugin could not be detected. There should be more details about this in the scanner logs.

The other issue, with “Unexpected exception while clearing reviews”, we already know about, you can track it on SONAR-12243. The ticket includes the workaround to make PR decoration work:

Two additional permissions are currently required on the GitHub App in order to decorate pull requests on private repositories:

  • Pull Request - Read Only
  • Commit Status - Read Only


Thanks for help, now its working correctly.
Am I understand it good, SCM must be enabled to make PR decoration work ?


Yes, SCM is used to find the files that changed and the lines that changed relative to the base branch. Without that, the PR analysis will not be very useful.