diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 332ef78..a842e64 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -35,7 +35,6 @@ jobs: - name: Sonar scan if: env.SONAR_TOKEN != null - uses: SonarSource/sonarqube-scan-action@v4 + uses: SonarSource/sonarqube-scan-action@v5 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties index 94068c7..43dc68d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -6,6 +6,8 @@ sonar.projectVersion=1.8.2 # Path is relative to the sonar-project.properties file sonar.sources=netbox_slm +sonar.exclusions=netbox_slm/tests/** +sonar.tests=netbox_slm/tests sonar.python.version=3.11, 3.12, 3.13 # Python test reports