Skip to content

Instantly share code, notes, and snippets.

@lcube45
Created August 30, 2022 07:32
Show Gist options
  • Save lcube45/cfa0c0d5456227872f1404a4f47883bc to your computer and use it in GitHub Desktop.
Save lcube45/cfa0c0d5456227872f1404a4f47883bc to your computer and use it in GitHub Desktop.
Sonar scanner docker
docker run \
--rm \
-v "$(pwd):/usr/src" \
sonarsource/sonar-scanner-cli \
-Dsonar.projectKey=<project-key> \
-Dsonar.sources=<folder-to-scan> \
-Dsonar.host.url=<sonarqube-dns> \
-Dsonar.login=<sonarqube-token>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment