Sign inSign up

nivekaacom/sonarbridge

By nivekaacom

•Updated 7 months ago

SonarBridge links GitLab and SonarQube to show code quality in merge requests.

Image
Integration & delivery
Developer tools
Monitoring & observability
0

414

nivekaacom/sonarbridge repository overview

⁠SonarBridge

SonarBridge is a lightweight TypeScript service that connects GitLab and SonarQube to bring code quality insights directly into your merge requests.

It is designed to run after your SonarQube analysis in a GitLab CI/CD pipeline, collect key metrics, and publish a clear, actionable report on each merge request.


⁠Features

  • Seamless integration between GitLab and SonarQube
  • Collects code quality metrics (bugs, vulnerabilities, coverage, etc.)
  • Posts automated reports directly to merge requests
  • Lightweight and CI/CD-friendly
  • Ready-to-use Docker image

⁠Usage

Example in a .gitlab-ci.yml:

sonarbridge:
  image: nivekaacom/sonarbridge:latest
  script:
    - sonarbridge

Make sure your pipeline already runs a SonarQube analysis before this step.


⁠Environment Variables

VariableDescription
SONAR_HOST_URLSonarQube server URL
SONAR_TOKENSonarQube authentication token
GITLAB_TOKENGitLab API token
CI_PROJECT_IDGitLab project ID
CI_MERGE_REQUEST_IIDMerge request ID

⁠How it works

  1. Run SonarQube analysis in your pipeline
  2. SonarBridge fetches analysis results via SonarQube API
  3. Formats key metrics into a readable report
  4. Publishes the report as a comment in the merge request

⁠Contributing

Contributions, issues, and feature requests are welcome!


⁠License

MIT License (or your preferred license)

Tag summary

Content type

Image

Digest

sha256:3fccb240b…

Size

56.4 MB

Last updated

7 months ago

docker pull nivekaacom/sonarbridge