github.com/mier85/go-sensor@v1.30.1-0.20220920111756-9bf41b3bc7e0/.github/workflows/sonarqube.yml (about)

     1  name: Generate SonarQube report
     2  on:
     3    push:
     4      branches:
     5        - master
     6    pull_request:
     7      types: [opened, synchronize, reopened]
     8  jobs:
     9    build:
    10      name: Run analysis
    11      runs-on: ubuntu-latest
    12      steps:
    13        - uses: actions/checkout@v2
    14          with:
    15            fetch-depth: 0
    16        - uses: sonarsource/sonarqube-scan-action@master
    17          env:
    18            SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
    19            SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}