DirectorySecurity advisories
Sign in

Directory

sonar-scanner-cli logo

sonar-scanner-cli

Last changed
Get started with latest for free
docker pull cgr.dev/chainguard/sonar-scanner-cli

Need access to a specific version? Contact us.

Sign in for updates

Get notified of upcoming product changes, critical vulnerability notifications and patches and more.

Sign in
Versions
Overview
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Scanner CLI for SonarQube and SonarCloud

Download this Image

The image is available on cgr.dev:

docker pull cgr.dev/chainguard/sonar-scanner-cli:latest

To use this image, ensure SonarQube is installed and accessible to the host where you will invoke the scanner. The scanner image will default to connecting to the SonarQube API on port 9000.

The following command shows example invocation of the image, assuming $PWD is the directory containing code to be scanned and -Dsonar.host.url is the address of a SonarQube server:

docker run --rm -v $PWD:/usr/src $IMAGE_NAME \
    -Dsonar.login=admin \
    -Dsonar.password=admin \
    -Dsonar.projectKey=default \
    -Dsonar.host.url=http://192.0.2.1:9000

Refer to the SonarScanner CLI documentation for detailed instructions on how to configure environment variables for the running container and for additional properties that can be configured at runtime.

Licenses

Chainguard Images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" version of this image:

  • Apache-2.0

  • BSD-3-Clause

  • FTL

  • GCC-exception-3.1

  • GPL-2.0-only

  • GPL-2.0-or-later

  • GPL-3.0-or-later

View more

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Products

Chainguard Images

© 2024 Chainguard, Inc.