Automatic user/group and permission provisioning Authentication issue

I have Github app setup with required permission what shown in document for sonarqube..I configured github app with sonarqube authentication..and while provisioning it did synced most of the user/group from github but it failing for one repo..and the error says like

Could not extract organization and repo slug from repo-name

What could be the issue here? I made sure Github App has correct permission and configuration is valid as well…it did synced around 95% stuff what i have in GitHub just failed on this.

Hi,

Could you provide the context of where you’re seeing this? Is it showing up in the UI? And if so, could you share a screenshot?

 
Thx,
Ann


after that from it has our org repo name

Yes i can see in authentication tab UI of Sonarqube

Hi,

What version of SonarQube are we talking about?

 
Thx,
Ann

We are currently on LTA 2025.1 Enterprise

Hi,

Thanks for that. I should have asked this at the same time: does anything show up in your server logs for this?

 
Thx,
Ann

Hi,

When i click on that server log link, it says page not found. I checked github app logs no issues

Hi,

Thanks for telling me. Here’s the right link.

 
Ann

2025.04.29 15:38:13 INFO  web[][c.s.p.c.ProvisioningTaskCreator] Scheduled GITHUB_AUTH_PROVISIONING provisioning task: bb230bf0-d03c-4dfb-b9a1-5e3248388732.
2025.04.29 15:38:52 WARN  web[e5a501fc-0753-4d28-928d-6071f0c57602][o.s.s.a.GithubWebhookAuthentication] [!dt dt.trace_sampled=true, dt.trace_id=c03ccd20d1e57b3566803acca1bf7c20, dt.span_id=5dff8960988dc606] Unauthenticated calls from GitHub are forbidden. A webhook secret must be defined in the GitHub App with Id 171532.

I have not setup webhook URL secret in my GitHub APP..logs says i need to set webhook secret..but wondering why it’s failing for that repo and not for others? i did synchronize 95% stuff then why it only fail for remaining stuff?

Hi,

I suppose the permissions are different on this repo and not the others?

 
Ann

Hi

What permission you want me to see in Repo? I think it has all it needs but wondering if something is important and i am missing it

Hi,

I think this is what you’re missing:

 
HTH,
Ann

Yeah but same GitHub app is working for all others github repository, then why it’s giving issue for this specific repo?

Hi,

Again:

 
HTH,
Ann

I confirmed all thing in Repo it’s nothing different than other repo. Can you please tell me what certain permission you talking about i can take look that one? Thank you

Hi,

Double-checking the docs, I see this:

  • Webhooks: Deactivate the feature.

 
Ann

I deactivated Webhook feature from GitHub app and i am still seeing the same issue

Hi,

Can you briefly enable debug logging (Administration → System → Logs level) and try this again and share what shows up in the web.log?

 
Thx,
Ann

Error Details
java.lang.IllegalStateException: Could not extract organization and repo slug from our-repo-name
	at org.sonar.api.utils.Preconditions.checkState(Preconditions.java:61)
	at com.sonar.github.provisioning.Q.M.Q.create(Unknown Source)
	at com.sonar.github.provisioning.Q.M.Q.create(Unknown Source)
	at com.sonar.provisioning.ce.service.LocalDbProjectService.lambda$getLocalDbProjects$0(LocalDbProjectService.java:39)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
	at com.sonar.provisioning.ce.service.LocalDbProjectService.getLocalDbProjects(LocalDbProjectService.java:40)
	at com.sonar.provisioning.ce.step.LoadDbProjectsStep.execute(LoadDbProjectsStep.java:31)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(ComputationStepExecutor.java:79)
	at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(ComputationStepExecutor.java:70)
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:57)
	at com.sonar.github.provisioning.Q.f.訊(Unknown Source)
	at com.sonar.github.provisioning.Q.f.process(Unknown Source)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(CeWorkerImpl.java:212)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.run(CeWorkerImpl.java:194)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(CeWorkerImpl.java:160)
	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(CeWorkerImpl.java:135)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:87)
	at org.sonar.ce.taskprocessor.CeWorkerImpl.call(CeWorkerImpl.java:53)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Hi,

This was in web.log? Not ce.log?

Can I have the 3 or 4 lines before this error?

 
Thx,
Ann