From 1d1fb09ac16c2b132712410ce7b98bd9b73a6a59 Mon Sep 17 00:00:00 2001 From: SonarTech Date: Tue, 16 Sep 2025 11:41:40 +0200 Subject: [PATCH 1/2] Test GH Action --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0829f97..a917c8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: run: | build-wrapper-win-x86-64.exe --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} msbuild sonar_scanner_example.vcxproj /t:rebuild /nodeReuse:false - name: SonarQube Scan - uses: SonarSource/sonarqube-scan-action@v4 + uses: SonarSource/sonarqube-scan-action@9e3b4566ddf746ecad637e9e760676f10e8229d6 env: SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} # Put the name of your token here SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} # SonarQube URL is stored in a GitHub secret From 0820d63d79513ce735047243d56b682939ec5359 Mon Sep 17 00:00:00 2001 From: SonarTech Date: Tue, 16 Sep 2025 15:31:41 +0200 Subject: [PATCH 2/2] Update GH Action --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a917c8c..b61d1ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ - + name: Build on: push: @@ -32,6 +32,6 @@ jobs: SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} # SonarQube URL is stored in a GitHub secret with: # if you are using using sonarqube 10.5 or earlier, replace sonar.cfamily.compile-commands with sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" - # as build-wrapper does not generate a compile_commands.json file before sonarqube 10.6 + # as build-wrapper does not generate a compile_commands.json file before sonarqube 10.6 args: > - --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json" + --define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json