{"id":15882313,"url":"https://github.com/ph1p/sonar-badges","last_synced_at":"2025-04-02T05:43:38.454Z","repository":{"id":90567662,"uuid":"272508423","full_name":"ph1p/sonar-badges","owner":"ph1p","description":"a small docker container to enable badges with private sonarqube instances","archived":false,"fork":false,"pushed_at":"2020-07-17T14:14:28.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T06:34:26.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ph1p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-15T17:58:24.000Z","updated_at":"2020-07-17T14:14:30.000Z","dependencies_parsed_at":"2023-03-24T02:03:44.395Z","dependency_job_id":null,"html_url":"https://github.com/ph1p/sonar-badges","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ph1p%2Fsonar-badges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ph1p%2Fsonar-badges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ph1p%2Fsonar-badges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ph1p%2Fsonar-badges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ph1p","download_url":"https://codeload.github.com/ph1p/sonar-badges/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763860,"owners_count":20829798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T04:02:28.782Z","updated_at":"2025-04-02T05:43:38.436Z","avatar_url":"https://github.com/ph1p.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonarqube Badges\n\n[![](https://images.microbadger.com/badges/image/ph1p/sonar-badges.svg)](https://hub.docker.com/repository/docker/ph1p/sonar-badges)\n[![](https://images.microbadger.com/badges/version/ph1p/sonar-badges.svg)](https://hub.docker.com/repository/docker/ph1p/sonar-badges)\n\nThis small project offers you a way to get your sonarqube badges out of your secured sonarqube instance.\n\n### Environment variables\n\nSet these variables:\n\n```bash\nSERVER_URL (default: \"\")\n\n\u003c= v7.x.x\nUSERNAME (default: \"\")\nPASSWORD (default: \"\")\n\n\u003e= v8.x.x\nTOKEN (default: \"\")\n```\n\nI would recommend that you create an additional user within your instance and grant this user permissions.\n\n##### Optional\n\n- ENABLE_REQUEST_LOG (default: false\")\n- PORT (defaul: 8080)\n\n### Howto\n\n- download **docker-compose.yml**\n- set environment variables\n- run `docker-compose up -d`\n- open `http://localhost:8080/KEY/METRIC.svg?branch=BRANCH`\n\n**METRIC:** a metric key from the list down below\n\n**KEY:** the project key inside your sonarqube instance\n\n**BRANCH:** the analyzed branch (this is optional!)\n[https://github.com/mc1arke/sonarqube-community-branch-plugin](https://github.com/mc1arke/sonarqube-community-branch-plugin)\n\n#### Metric Types\n\n- bugs\n- code_smells\n- coverage\n- duplicated_lines_density\n- ncloc\n- sqale_rating\n- alert_status\n- reliability_rating\n- security_rating\n- sqale_index\n- vulnerabilities\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph1p%2Fsonar-badges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph1p%2Fsonar-badges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph1p%2Fsonar-badges/lists"}