Unable to configure DevOps Platform Integration for GitHub

Hello,

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

SonarQube Developer Edition Version 9.3 (build 51899)

  • what are you trying to achieve

Configure DevOps Platform Integration for GitHub.

  • what have you tried so far to achieve this

We’ve configured the “DevOps Platform Integrations” with the following

The configuration was valid according to the UI.

Then, assigned the config to the repo we want to be integrated, but got the following error on UI

Either the GitHub repository with name ‘https://github.com/nuvla/clojure-library’ doesn’t exist or your GitHub App lacks permissions to access that repository

and at the same time in the server logs

WARN web[AX+M0iuQKtsex7GTAAyC][o.s.a.c.g.GithubApplicationHttpClientImpl] GET response did not have expected HTTP code (was 401): {“message”:“Bad credentials”,“documentation_url”:“GitHub REST API - GitHub Docs”}

The GitHub repo is public. And also, checked multiple times the “DevOps Platform Integrations” config params (GitHub App ID, Client ID, Client Secret, Private Key).

On the GitHub App page, we see the following

Please can you provide any hints on how to proceed with troubleshooting of this issue?

Thank you in advance.

Best regards.

The problem was with the “Repository name” in the “DevOps Platform Integration” config for the project. It contained a full URL instead of just “org/repo”.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.