Gitlab - PR decoration not working

Hello,

I have integreted sonar with my gitlab pull request. I can see the pull request in sonar when i made one but I dont see the pull request decoration on Gitlab. Can I have help with it please ?

Is it supported or working ?

I have the team subscription.

Thank you for your help

Hey there.

Is your project bound?

Yes It’s bond well cause i can see the scan and the result of the scan on sonar for the pull request but nothings is send back to gitlab to comment and add decoration. I have found this warning , can you confirm if it’s true ?:

That’s not necessarily the same as the project being bound.

Can you check your project’s Administration > General Settings > Repository binding area?

Okay I understand.

Here is the result:

Sounds like perhaps even your organization is not bound!

I suggest you check your organization binding (org-level Administration > Organization settings > Organization binding), and make sure a valid Gitlab token that can view your project (the project you want to bind) is used.

PR Decoration will work once your repo is appropriately bound.

Perfect thank you.

I just bouded it I’ll test it and get back to you.

Okay.

So the bouding worked but since it has been done now i got this error in my pipelines:

16:49:18.921 ERROR Project not found. Please check the ‘sonar.projectKey’ and ‘sonar.organization’ properties, the ‘SONAR_TOKEN’ environment variable, or contact the project administrator to check the permissions of the user the token belongs to

It would be very weird for those two actions to be linked! Can you share a wider range of logs from your pipeline, particularly what is happening before this error?