From f0da57a96759618a8877635576115c6872b17615 Mon Sep 17 00:00:00 2001 From: Sander van Rijn Date: Tue, 2 Sep 2025 17:33:35 +0200 Subject: [PATCH 1/2] change sonarcloud action to sonarqube --- .../workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} b/template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} index e8ca8152..0b52680e 100644 --- a/template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} +++ b/template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} @@ -34,7 +34,7 @@ jobs: - name: Correct coverage paths run: sed -i "s+$PWD/++g" coverage.xml - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master + uses: SonarSource/sonarqube-scan-action@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 32dbf35cad207b4f0826fc1d13da713e33e25f1c Mon Sep 17 00:00:00 2001 From: Sander van Rijn Date: Mon, 8 Sep 2025 14:00:12 +0200 Subject: [PATCH 2/2] remove github token from sonarcloud workflow --- .../workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} | 1 - 1 file changed, 1 deletion(-) diff --git a/template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} b/template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} index 0b52680e..fee319fb 100644 --- a/template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} +++ b/template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddSonarCloud %}sonarcloud.yml{% endif %} @@ -36,5 +36,4 @@ jobs: - name: SonarCloud Scan uses: SonarSource/sonarqube-scan-action@v5 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}