From d2dc560f220af18e10815146785a3d5d2a8ac910 Mon Sep 17 00:00:00 2001 From: Sean Sylver Date: Tue, 17 Sep 2024 11:11:27 -0700 Subject: [PATCH 1/2] Test sonar --- .github/workflows/sonarscan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarscan.yml b/.github/workflows/sonarscan.yml index 546cc6602..509722983 100644 --- a/.github/workflows/sonarscan.yml +++ b/.github/workflows/sonarscan.yml @@ -35,7 +35,7 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Build and analyze + - name: Build and analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 9bfd3117a43a5edb23e2b4e5f0f0dcc5f49b8090 Mon Sep 17 00:00:00 2001 From: Sean Sylver Date: Tue, 17 Sep 2024 11:21:32 -0700 Subject: [PATCH 2/2] Add sonar properties for jacoco --- sonar-project.properties | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sonar-project.properties b/sonar-project.properties index 2e30070ba..00bb2fc2e 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,6 +1,11 @@ sonar.organization=bcgov-sonarcloud sonar.projectKey=nr-bcws-wfprev sonar.host.url=https://sonarcloud.io +sonar.projectName=wfprev +sonar.projectVersion=1.0.0-SNAPSHOT +sonar.sources=server/wfprev-api/src/main/java/ +sonar.language=java +sonar.java.binaries=**/target/classes # relative paths to source directories. More details and properties are described # in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/