Skip to content

Github Action which downloads and runs sonar-scanner cli with custom parameters to start Sonarqube scan.

License

Notifications You must be signed in to change notification settings

Warchant/setup-sonar-scanner

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

sonar-scanner docker action

This action downloads given version of sonar-scanner and adds it to PATH.

Inputs

version

Required sonar-scanner cli version. List of available versions: https://github.com/SonarSource/sonar-scanner-cli/releases. Default 4.2.0.1873.

Example usage

- name: Run sonarqube
  uses: warchant/sonar-scanner-action@v1
  env:
    # to get access to secrets.SONAR_TOKEN, provide GITHUB_TOKEN
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
    version: '4.2.0.1873'
    options: '-Dsonar.login=${{ secrets.SONAR_TOKEN }}
              -Dsonar.organization=1corp
              -Dsonar.host.url=https://sonarcloud.io/
              -Dsonar.projectKey=sonar-scanner-action'

About

Github Action which downloads and runs sonar-scanner cli with custom parameters to start Sonarqube scan.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published