{"id":20830414,"url":"https://github.com/javiertuya/sonarqube-action","last_synced_at":"2025-05-07T22:21:59.214Z","repository":{"id":175902989,"uuid":"654688252","full_name":"javiertuya/sonarqube-action","owner":"javiertuya","description":"Scans a java maven project with SonarQube, restores artifacts and checks quality gate","archived":false,"fork":false,"pushed_at":"2025-05-03T05:29:25.000Z","size":22,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T06:25:04.780Z","etag":null,"topics":["github-action","java","maven","quality-gate","sonarcloud","sonarqube"],"latest_commit_sha":null,"homepage":"","language":null,"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/javiertuya.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,"zenodo":null}},"created_at":"2023-06-16T17:40:59.000Z","updated_at":"2025-05-03T05:29:27.000Z","dependencies_parsed_at":"2023-07-02T07:46:59.635Z","dependency_job_id":"9d2de73d-48f9-440a-ad10-a647b61c12e1","html_url":"https://github.com/javiertuya/sonarqube-action","commit_stats":null,"previous_names":["javiertuya/sonarqube-action"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiertuya%2Fsonarqube-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiertuya%2Fsonarqube-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiertuya%2Fsonarqube-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiertuya%2Fsonarqube-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiertuya","download_url":"https://codeload.github.com/javiertuya/sonarqube-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252962852,"owners_count":21832409,"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":["github-action","java","maven","quality-gate","sonarcloud","sonarqube"],"created_at":"2024-11-17T23:24:27.181Z","updated_at":"2025-05-07T22:21:59.190Z","avatar_url":"https://github.com/javiertuya.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# SonarQube Maven Scan Action\n\nThis action scans a java maven project with SonarQube. Features:\n- Does not require any change in the `pom.xml`, all configuration is read from `sonar-project.properties`\n- Cache setup and compilation\n- Optional restore of one or more artifacts to send additional info to SonarQube (e.g. coverage)\n- Check the quality gate\n\n## Inputs\n\n- `github-token` *(Required)*: Token to access GitHub (needed to check the quality gate)\n- `sonar-token` *(Required)*: Token to access SonarQube\n- `sonar-host-url` *(Default to https://sonarcloud.io)*: Tells the scanner where SonarQube is hosted\n- `working-directory` *(Default to root directory)*: The name of the working directory from which the scan is executed\n- `java-version` *(Default 17)*: Java version used run the scans (JDK 17 is the minium required by SonarCloud)\n- `restore-artifact-name\u003cN\u003e`, Where `\u003cN\u003e` is a number (1 to 6). Optional name of an artifact to be restored to send additional info to SonarQube (e.g. coverage reports)\n- `restore-artifact-path\u003cN\u003e` *(Default to the `working-directory`)*: Path where `restore-artifact-name\u003cN\u003e` will be restored (relative to the working directory)'\n\n## Example usage\n\n```yaml\n      - uses: javiertuya/sonarqube-action@main\n        with: \n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          sonar-token: ${{ secrets.SONAR_TOKEN }}\n          restore-artifact-name1: \"test-coverage-files\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviertuya%2Fsonarqube-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviertuya%2Fsonarqube-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviertuya%2Fsonarqube-action/lists"}