From 0916cadadf3500f779e3deb28b61ed916b170e2b Mon Sep 17 00:00:00 2001 From: Ed Harrod <echarrod@users.noreply.github.com> Date: Thu, 17 Apr 2025 13:29:20 +0100 Subject: [PATCH 1/2] sonar: Update deprecated action --- .github/workflows/sonar.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index e376bc2..cc6eff9 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -25,6 +25,7 @@ jobs: run: go test -coverpkg=./... -coverprofile=coverage.out -json ./... > sonar-report.json - name: Upload coverage reports to Sonar - uses: sonarsource/sonarcloud-github-action@master env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + if: github.event.pull_request.head.repo.full_name == github.repository || env.SONAR_TOKEN != '' + uses: SonarSource/sonarqube-scan-action@master \ No newline at end of file From b5bf61ae2d7e286f5c55f45e4eae028ef5df5bd7 Mon Sep 17 00:00:00 2001 From: Ed Harrod <echarrod@users.noreply.github.com> Date: Thu, 17 Apr 2025 13:39:21 +0100 Subject: [PATCH 2/2] sonar: Update deprecated action to v5.1.0 --- .github/workflows/sonar.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index cc6eff9..1428e7a 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -28,4 +28,4 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} if: github.event.pull_request.head.repo.full_name == github.repository || env.SONAR_TOKEN != '' - uses: SonarSource/sonarqube-scan-action@master \ No newline at end of file + uses: SonarSource/sonarqube-scan-action@v5.1.0 \ No newline at end of file