Update sonarqube.yml

This commit is contained in:
Winni Neessen 2022-04-13 09:43:27 +02:00 committed by GitHub
parent a328e950b6
commit 2467a860e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,21 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v2.1.3
with:
go-version: 1.18.x
- name: Run unit Tests
run: |
go test -v -race --coverprofile=./cov.out ./...
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: '-no-fail -fmt sonarqube -out report.json ./...'
- uses: sonarsource/sonarqube-scan-action@master - uses: sonarsource/sonarqube-scan-action@master
env: env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}