Skip to content

SonarQube Scanner-Linux

Actions
Scans your code using the sonarqube batch file
v1.2
Latest
Star (0)

Tags

 (1)

SonarQube Scanner for linux

Runs the SonarQube scanner on a linux machine. This uses the sonarqube zip file and embeded java. No docker or java install required.

Perfect for hosted or self-hosted runners

Usage

An example workflow to run SonarQube scan task scan and upload results to sonarqube.

name: Scan code

on: [push]

env:
  SONARQUBE_PROJECT_KEY: ${{ github.event.repository.owner.login }}:${{ github.event.repository.name }}
  SONARQUBE_PROJECT_NAME: ${{ github.event.repository.owner.login }}:${{ github.event.repository.name }}

jobs:
  scan:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Scan
      uses: jimseiwert/[email protected]
      with:
        host-url: ${{ secrets.sonarqube_url }}
        token: ${{ secrets.sonarqube_token }}
        project-key: ${{ env.SONARQUBE_PROJECT_KEY }}
        project-name: ${{ env.SONARQUBE_PROJECT_NAME }}
        sq-version: "4.6.1.2450" #default   

SonarQube Scanner-Linux is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Scans your code using the sonarqube batch file
v1.2
Latest

Tags

 (1)

SonarQube Scanner-Linux is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.