diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 91ca0855..605708da 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -117,13 +117,13 @@ jobs: run: | go test -cover - # - name: SonarQube Scan - # uses: sonarsource/sonarqube-scan-action@master - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - # SONAR_HOST_URL: https://sonarqube.ta.philips.com/ - # with: - # projectBaseDir: ${{ github.workspace }} + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: https://sonarqube.ta.philips.com/ + with: + projectBaseDir: ${{ github.workspace }} diff --git a/sonar-project.properties b/sonar-project.properties index 98173487..fc436707 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,5 +1,6 @@ sonar.projectKey=EDI-hds-oauth2-proxy sonar.projectName=EDI-hds-oauth2-proxy +sonar.go.coverage.reportPaths=coverage.out sonar.sources=. sonar.exclusions=**/*_test.go sonar.tests=.