https://github.com/unblu/u-sonar-status
SonarQube Quality Gate Status as External Status Check in GitLab Ultimate
https://github.com/unblu/u-sonar-status
gitlab sonarqube
Last synced: 5 months ago
JSON representation
SonarQube Quality Gate Status as External Status Check in GitLab Ultimate
- Host: GitHub
- URL: https://github.com/unblu/u-sonar-status
- Owner: unblu
- License: apache-2.0
- Created: 2023-03-24T18:55:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-08-11T14:10:49.000Z (11 months ago)
- Last Synced: 2025-08-11T14:19:59.383Z (11 months ago)
- Topics: gitlab, sonarqube
- Language: Java
- Homepage: https://unblu.github.io/u-sonar-status/
- Size: 2.2 MB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: readme.adoc
- License: LICENSE
Awesome Lists containing this project
README
//tag::vardef[]
:gh-repo-owner: unblu
:gh-repo-name: u-sonar-status
:project-name: u-sonar-status
:git-branch: main
:license: http://www.apache.org/licenses/LICENSE-2.0
:license-name: Apache 2.0 License
:git-repository: {gh-repo-owner}/{gh-repo-name}
:homepage: https://{gh-repo-owner}.github.io/{gh-repo-name}/
:issues: https://github.com/{git-repository}/issues
//end::vardef[]
= {project-name}
Bot to report a SonarQube (or SonarCloud) "Pull Request https://docs.sonarqube.org/latest/user-guide/quality-gates/#quality-gate-status[Quality Gate Status]" as "https://docs.gitlab.com/ee/user/project/merge_requests/status_checks.html[External Status Check]" on Merge Requests in GitLab Ultimate.
image::_documentation/src/docs/images/mr-overview.png[]
This way you can prevent merging when the external check is failing.
This is better than failing the pipeline as recommended by the Sonar documentation (https://docs.sonarqube.org/9.9/devops-platform-integration/gitlab-integration/[GitLab integration] integration page).
When there are some changes in Sonar (some findings marked as false positives) turning the quality gate from "Failed" to "Passed", the status is automatically reported in GitLab without to re-run a failing pipeline.
Read more on the link:{homepage}[project home page].
== Get in touch
Use the link:{issues}[{project-name} issue tracker] on GitHub.
== License
link:{license}[{license-name}]