ERROR: Not authorized. Analyzing this project requires authentication. Please provide a user token in sonar.login or other credential


I tried to audit using sonarqube my project which is on gitlab but I had problems:

the file :

could you help me please it’s urgent ?

I ran these commands:
docker run
–net host
-e SONAR_HOST_URL=“http://localhost:9000
-v /home/mobaxterm/Desktop/nom_projet/:/root/src

I have this as result

but on sonarqube I have this error


Welcome to the community!

I guess you solved the first problem and appended a second one here? We try to keep it to one question per thread. Otherwise things get messy.