diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index a999b9c9c..000000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: sonarcloud - -on: - push: - branches: [ master ] -jobs: - sonarcloud: - name: Sonar static analysis - runs-on: ubuntu-22.04 - steps: - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.21 - id: go - - name: Checkout - uses: actions/checkout@v2 - with: - # Disabling shallow clone is recommended for improving relevancy of reporting - fetch-depth: 0 - - name: Install dependencies - # Need to install Typescript which is required by SonarCloud ro tun its checks - run: make deps testdeps - - name: Generate coverage report - run: make test-coverprofile - - name: SonarCloud Scan - uses: sonarsource/sonarcloud-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index f30289216..000000000 --- a/sonar-project.properties +++ /dev/null @@ -1,15 +0,0 @@ -# Encoding of the source code. Default is default system encoding -sonar.sourceEncoding=UTF-8 - -sonar.organization=bosun-monitor -sonar.projectKey=bosun-monitor_bosun - -sonar.sources=. -sonar.exclusions=**/*_test.go,**/vendor/**,**/tests/** - -sonar.tests=. -sonar.test.inclusions=**/*_test.go -sonar.test.exclusions=**/vendor/** - -sonar.go.coverage.reportPaths=coverage.out -sonar.go.tests.reportPaths=test-report.out