javiertuya/SonarQube Maven Scan
Scans a java maven project with SonarQube, restores artifacts and checks quality gate
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 4, 2026
- License
- MIT
Pinned Snippet
uses: javiertuya/sonarqube-action@3ad5662c133decd5fb1bd8caa31d72c3aa8f9d75 # v1.4.4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | Token to access GitHub (needed to check the quality gate) | yes | — |
| sonar-token | Token to access SonarQube | yes | — |
| sonar-host-url | Tells the scanner where SonarQube is hosted | no | https://sonarcloud.io |
| working-directory | The name of the working directory from which the scan is executed (where `sonar-project.properties` is located) | no | . |
| java-directory | The name of the directory (relative to `working-directory`) where the java project is compiled (where `pom.xml` is located) | no | . |
| java-version | Java version used to build the package | yes | 17 |
| restore-artifact-name1 | Optional name of an artifact to be restored to send additional info to SonarQube (e.g. coverage reports) | no | "" |
| restore-artifact-path1 | Path where `restore-artifact-name1` will be restored (relative to the working directory) | no | . |
| restore-artifact-name2 | Optional name of an a second artifact to be restored to send additional info to SonarQube | no | "" |
| restore-artifact-path2 | Path where `restore-artifact-name2` will be restored (relative to the working directory) | no | . |
| restore-artifact-name3 | Optional name of an a third artifact to be restored to send additional info to SonarQube | no | "" |
| restore-artifact-path3 | Path where `restore-artifact-name3` will be restored (relative to the working directory) | no | . |
| restore-artifact-name4 | Optional name of an a fourth artifact to be restored to send additional info to SonarQube | no | "" |
| restore-artifact-path4 | Path where `restore-artifact-name4` will be restored (relative to the working directory) | no | . |
| restore-artifact-name5 | Optional name of an a fifth artifact to be restored to send additional info to SonarQube | no | "" |
| restore-artifact-path5 | Path where `restore-artifact-name5` will be restored (relative to the working directory) | no | . |
| restore-artifact-name6 | Optional name of an a sixth artifact to be restored to send additional info to SonarQube | no | "" |
| restore-artifact-path6 | Path where `restore-artifact-name6` will be restored (relative to the working directory) | no | . |
| restore-artifact-name7 | Optional name of an a seventh artifact to be restored to send additional info to SonarQube | no | "" |
| restore-artifact-path7 | Path where `restore-artifact-name7` will be restored (relative to the working directory) | no | . |
| restore-artifact-name8 | Optional name of an a eighth artifact to be restored to send additional info to SonarQube | no | "" |
| restore-artifact-path8 | Path where `restore-artifact-name8` will be restored (relative to the working directory) | no | . |
Outputs
no outputs