Pull request decoration failed

Template for a good bug report, formatted with Markdown:

  • Soqnarqube serverVersion: 8.6.0.39681
  • sonar scanner version: sonar-scanner-4.6.0.2311-linux
  • CFamily plugin version: 6.15.0.25047
  • Jenkins server version: 2.263.1
  • Jenkins agent: via SSH
  • build environment: docker

Even though I follow the pull request decoration steps, I still can’t see the Quality Gate and analysis metrics on Github.

Steps executed:
I have setup Sonarqube with Postgres DB and able to connect our private repository to SonarQube.
I have configured pull request decoration by following the steps listed below.Pull Request Analysis | SonarQube Docs

here is the exception stack trace:

2021.03.11 15:42:48 WARN  ce[AXgh9Fz9tmZAR5tzBHWZ][c.s.E.D.E.B] Pull request decoration failed
java.lang.IllegalStateException: Pull request decoration failed: Pull request decoration failed: can't access the GitHub repository 'luminartech/LumPDK'. Check that the repo ID is correct and that the GitHub App has permissions to access it.
	at com.sonarsource.E.D.E.B.A(Unknown Source)
	at com.sonarsource.E.D.E.B.A(Unknown Source)
	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
	at com.sonarsource.E.D.E.B.B(Unknown Source)
	at com.sonarsource.E.D.E.B.A(Unknown Source)
	at com.sonarsource.E.D.E.L.A(Unknown Source)
	at com.sonarsource.E.D.E.D.A(Unknown Source)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
	at com.sonarsource.E.D.E.D.A(Unknown Source)
	at com.sonarsource.E.D.c.A(Unknown Source)
	at java.base/java.util.Optional.ifPresent(Optional.java:183)
	at com.sonarsource.E.D.c.B(Unknown Source)
	at com.sonarsource.E.D.c.A(Unknown Source)
	at org.sonar.ce.async.SynchronousAsyncExecution.addToQueue(SynchronousAsyncExecution.java:27)
	at com.sonarsource.E.D.c.A(Unknown Source)
	at java.base/java.util.Optional.ifPresent(Optional.java:183)
	at com.sonarsource.E.D.c.finished(Unknown Source)
	at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.executeTask(PostProjectAnalysisTasksExecutor.java:118)
	at org.sonar.ce.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.finished(PostProjectAnalysisTasksExecutor.java:109)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeListener(ComputationStepExecutor.java:91)
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:63)
	at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:81)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:235)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:217)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:162)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:137)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:89)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

Hello @sturk
welcome to the Community, and sorry about this late answer.
In order to get quicker answers on this forum for your next posts, posting on the right topic may help, here it would have been “Get help” and not “Report a bug”.

After almost three weeks, I guess you have solved your issue. If not the case, don’t hesitate to get back to the github integration page of the SonarQube documentation and look at any missing bit in your configuration which could explain why SonarQube is unhappy with the connectivity to your repo (Github App not installed, not set with sufficient permissions…)

Best regards
Sylvain

1 Like