diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 58e80a8..63e15d3 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -3,6 +3,8 @@ on: push: branches: - main # or the name of your main branch +env: + HIBP_API_KEY: ${{ secrets.HIBP_API_KEY }} jobs: build: name: Build @@ -19,12 +21,12 @@ jobs: - name: Run unit Tests run: | - go test -v -race --coverprofile=./cov.out ./... + 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 ./...' + args: '-no-fail -fmt sonarqube -out report.json .' - uses: sonarsource/sonarqube-scan-action@master env: