Does the Gitlab authentication is required to import the projects from Gitlab

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 8.9 LTS community edition.
  • what are you trying to achieve.
    I am trying to import the Gitlab project into SonarQube so that while creating the project manually in sonarqube we can pick the one from the existing list.
  • what have you tried so far to achieve this
    We have integrated Active Directory with Sonarqube for Authentication purpose.
    And now trying to configure to import the Gitlab projects into Sonarqube.
    As per the Document, I have created a personal_access_token in the gitlab with "read_api"access and provided the details
    Configuration name:Gitlab
    GitLab API URL:https://gitlab.xxxx.xxxx/api/v4/projects
    Personal Access token:xxxxxxxxxxxxxxxxxxxxxxxxxxxx(something)

I am trying to configure this with “admin” account.
Please refer to the screenshot for the same.


But when we try to access the same Gitlab API URL (https://gitlab.xxxx.xxxx/api/v4/projects) from Chrome getting the project list …

My question here is " to import the Gitlab projects into Sonarqube, Do we need to setup the Gitlab Authentication with Sonarqube"? Because here we have integrated Active Directory with Soanrqube for Authentication purpose.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

No, you don’t have to authenticate your users with/through/via GitLab in order for the rest of the integration to work.

I guess the first thing to look at is that Personal Access token and make sure it’s valid. If it is, then I would look next at the network & make sure that the SQ instance can talk directly to your GitLab instance.

 
HTH,
Ann