From b5402ddbad65829639abb0cb15a696539c284a32 Mon Sep 17 00:00:00 2001 From: Chinmay Samant Date: Mon, 27 May 2024 12:14:04 +0530 Subject: [PATCH] disable sonar --- .github/workflows/build.yml | 18 +++++++++--------- sonar-project.properties | 7 +++++++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c4dc7e..10c2064 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,12 +57,12 @@ jobs: path: unit-test-report.json if-no-files-found: error - - name: Run sonar - uses: sonarsource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - with: - args: > - -Dsonar.projectVersion=${{ steps.get_version.outputs.VERSION }} + # - name: Run sonar + # uses: sonarsource/sonarcloud-github-action@master + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + # with: + # args: > + # -Dsonar.projectVersion=${{ steps.get_version.outputs.VERSION }} diff --git a/sonar-project.properties b/sonar-project.properties index b255be5..29b354a 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,6 +2,13 @@ sonar.projectKey=de.gessnerfl.terraform-provider-instana sonar.projectName=Terraform Provider Instana sonar.organization=gessnerfl-github +# Project identification (Needs update once sonar project is created) +sonar.projectKey=terraform-provider-instana +sonar.projectName=Terraform Provider Instana +sonar.projectVersion=1.0 +sonar.host.url=https://sonarqube.instana.io +sonar.token=${{ secrets.SONAR_TOKEN }} + sonar.sources=. sonar.exclusions=**/*_test.go,**/*_generated*.go,mocks/**/*_mocks.go sonar.tests=.