SonarQube webhook to notify GitLab

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube = sonarqube-developer-
    Scanner = sonar-scanner-
  • what are you trying to achieve
    I want to create a webhook to notify GitLab after every scan of C++ project
  • what have you tried so far to achieve this
    From GitLab
    I’ve created an Alert as follows


From SonarQube
I’ve created a Webhook as follows


Note that the URL is set with the Webhook URL from GitLab and the Secret is also set with the Authorization key from GitLab

Then I’ve executed a scan from SonarQube Runner to scan a C++ project and it has done successfully.


==> but I’ve seen no new Alert created from the GitLab Alerts page

Then I’ve executed this statement from Curl prompt to verify.
curl -X GET -u bbf841b95150f6c7d501c3d3bfb5b7c564ae6d16: http://localhost:9000/api/webhooks/list

And got this message

==> httpStatus 401 is telling me that there was an issue with authentication. Could you help tell me what possibly was missing?



Hi Brian,

Unfortunately, none of your images came through. When I look at the source of your post I see references to so I don’t think what you intended is what happened.