{"id":20655698,"url":"https://github.com/remast/service_sonar","last_synced_at":"2025-06-22T11:07:23.343Z","repository":{"id":50514013,"uuid":"169850445","full_name":"remast/service_sonar","owner":"remast","description":"Example for analyzing Go code with SonarQube (including Github Action).","archived":false,"fork":false,"pushed_at":"2025-03-14T16:27:35.000Z","size":27,"stargazers_count":16,"open_issues_count":1,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T11:07:04.235Z","etag":null,"topics":["beginner-friendly","cleancode","go","golang","sonarqube"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2019-02-09T09:21:21.000Z","updated_at":"2025-03-14T16:27:35.000Z","dependencies_parsed_at":"2025-04-20T13:31:28.476Z","dependency_job_id":null,"html_url":"https://github.com/remast/service_sonar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remast/service_sonar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remast%2Fservice_sonar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remast%2Fservice_sonar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remast%2Fservice_sonar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remast%2Fservice_sonar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remast","download_url":"https://codeload.github.com/remast/service_sonar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remast%2Fservice_sonar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261282322,"owners_count":23134939,"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":["beginner-friendly","cleancode","go","golang","sonarqube"],"created_at":"2024-11-16T18:12:22.787Z","updated_at":"2025-06-22T11:07:18.331Z","avatar_url":"https://github.com/remast.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-white.svg)](https://sonarcloud.io/dashboard?id=de.red6%3Aservice_sonar) ![](https://github.com/remast/service_sonar/workflows/Main%20Workflow/badge.svg)\n# Example for SonarQube with Go\n\nExample on static analysis of Go code using SonarQube for the blog post [Go for SonarQube](https://medium.com/@remast/go-for-sonarqube-ffff5b74f33a).\n\n## Start SonarQube\n\n    docker run -d --name sonarqube -p 9000:9000 sonarqube\n\n\n## Run SonarQube analysis\n\n    docker run --rm --network host --mount type=volume,src=\"$(pwd)\",dst=/opt/app,type=bind -w=/opt/app red6/docker-sonar-scanner:latest sonar-scanner -Dsonar.login=**SECRET**\n\n## Github Action\n\nThis project also uses Github Actions as documented in [Scan your code with SonarCloud](https://github.com/SonarSource/sonarcloud-github-action).\n\nCode coverage is analyzed during the test and then reported to SonarCloud using [upload-artifact](https://github.com/actions/upload-artifact) and [download-artifact](https://github.com/actions/download-artifact).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremast%2Fservice_sonar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremast%2Fservice_sonar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremast%2Fservice_sonar/lists"}