I have a personal SonarQube (Latest LTS) and Gitlab (14.5.1) installation. I've set-up everything and login with Gitlab through the web interface is working. However, I'm looking for a way to login with gitlab credentials throught the SonarQube API. If I add this to my gitlab-ci.yml
file: https://sonarqube.example.com/api/projects/create?name=testProject
I get a 401 (which is expected since I haven't added an API key and such).
My question is: Is it possible to automatically create an API key, use it in the gitlab-ci.yml
and authenticate with it? If there's no way of doing this, is there an possibility to generate a group API key so that users in a certain group have access to the API, both on SonarQube and Gitlab?
Have been stuck on this for a while now, thanks in advance.