From 55aed07a50ee6d0e449986535cd397c69c0099e7 Mon Sep 17 00:00:00 2001 From: Neil Fordyce Date: Wed, 29 May 2024 15:40:43 +0100 Subject: [PATCH] Remove Sonarcloud The GHA steps are failing and we haven't been looking at them anyway. I've setup codeql instead. --- .github/workflows/sonarcloud.yml | 30 ------------------------------ sonar-project.properties | 15 --------------- 2 files changed, 45 deletions(-) delete mode 100644 .github/workflows/sonarcloud.yml delete mode 100644 sonar-project.properties diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index a999b9c9cb..0000000000 --- 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 f30289216f..0000000000 --- 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