diff --git a/.github/workflows/sonarscan.yml b/.github/workflows/sonarscan.yml index ca50b848..10a05e57 100644 --- a/.github/workflows/sonarscan.yml +++ b/.github/workflows/sonarscan.yml @@ -33,7 +33,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 }} diff --git a/sonar-project.properties b/sonar-project.properties index 2e30070b..00bb2fc2 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/