mirror of
https://github.com/wneessen/go-hibp.git
synced 2024-11-22 21:00:51 +01:00
Update sonarqube.yml
This commit is contained in:
parent
a328e950b6
commit
2467a860e1
1 changed files with 15 additions and 0 deletions
15
.github/workflows/sonarqube.yml
vendored
15
.github/workflows/sonarqube.yml
vendored
|
@ -11,6 +11,21 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
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
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue