From de4ca50d9bcd551213f569b7a96aa8868a369851 Mon Sep 17 00:00:00 2001 From: aswin-in-philips Date: Fri, 17 Feb 2023 13:01:04 +0530 Subject: [PATCH] testing sonar --- .github/workflows/ci.yaml | 14 +++++++------- sonar-project.properties | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) 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=.