javiertuya/SonarQube Maven Scan

Scans a java maven project with SonarQube, restores artifacts and checks quality gate

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 4, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: javiertuya/sonarqube-action@3ad5662c133decd5fb1bd8caa31d72c3aa8f9d75 # v1.4.4

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github-tokenToken to access GitHub (needed to check the quality gate)yes
sonar-tokenToken to access SonarQubeyes
sonar-host-urlTells the scanner where SonarQube is hostednohttps://sonarcloud.io
working-directoryThe name of the working directory from which the scan is executed (where `sonar-project.properties` is located)no.
java-directoryThe name of the directory (relative to `working-directory`) where the java project is compiled (where `pom.xml` is located)no.
java-versionJava version used to build the packageyes17
restore-artifact-name1Optional name of an artifact to be restored to send additional info to SonarQube (e.g. coverage reports)no""
restore-artifact-path1Path where `restore-artifact-name1` will be restored (relative to the working directory)no.
restore-artifact-name2Optional name of an a second artifact to be restored to send additional info to SonarQubeno""
restore-artifact-path2Path where `restore-artifact-name2` will be restored (relative to the working directory)no.
restore-artifact-name3Optional name of an a third artifact to be restored to send additional info to SonarQubeno""
restore-artifact-path3Path where `restore-artifact-name3` will be restored (relative to the working directory)no.
restore-artifact-name4Optional name of an a fourth artifact to be restored to send additional info to SonarQubeno""
restore-artifact-path4Path where `restore-artifact-name4` will be restored (relative to the working directory)no.
restore-artifact-name5Optional name of an a fifth artifact to be restored to send additional info to SonarQubeno""
restore-artifact-path5Path where `restore-artifact-name5` will be restored (relative to the working directory)no.
restore-artifact-name6Optional name of an a sixth artifact to be restored to send additional info to SonarQubeno""
restore-artifact-path6Path where `restore-artifact-name6` will be restored (relative to the working directory)no.
restore-artifact-name7Optional name of an a seventh artifact to be restored to send additional info to SonarQubeno""
restore-artifact-path7Path where `restore-artifact-name7` will be restored (relative to the working directory)no.
restore-artifact-name8Optional name of an a eighth artifact to be restored to send additional info to SonarQubeno""
restore-artifact-path8Path where `restore-artifact-name8` will be restored (relative to the working directory)no.

no outputs