Skip to content

Commit

Permalink
disable sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinmay Samant authored and Chinmay Samant committed May 27, 2024
1 parent 5f61bbb commit b5402dd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
7 changes: 7 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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=.
Expand Down

0 comments on commit b5402dd

Please sign in to comment.