Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

setup-sonar-scanner javascript 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: Setup sonarqube
  uses: warchant/setup-sonar-scanner@v3
- name: Run sonarqube
  env:
    # to get access to secrets.SONAR_TOKEN, provide GITHUB_TOKEN
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  run: sonar-scanner
       -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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages