From b27435da148eb884533ace0da79ac126430a51fe Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 13:23:25 +0000 Subject: [PATCH 1/2] chore(deps): update sonarsource/sonarcloud-github-c-cpp action to v3.2.0 --- .github/workflows/sonarcloud.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index dd439dc..09025af 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -48,7 +48,7 @@ jobs: uses: ./.github/actions/install-dependencies - name: Install sonar-scanner and build-wrapper - uses: SonarSource/sonarcloud-github-c-cpp@816b1822d71776ee0d32bc012e95024ec52ac1fc # v3.1.0 + uses: SonarSource/sonarcloud-github-c-cpp@44cc4d3d487fbc35e5c29b0a9d717be218d3a0e8 # v3.2.0 - name: Run build-wrapper run: | From a392f26283aa01a5b7604aa8f6c869b165a6a30a Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Tue, 4 Feb 2025 18:43:24 +0200 Subject: [PATCH 2/2] ci: switch to SonarSource/sonarqube-scan-action --- .github/workflows/sonarcloud.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 09025af..b42c801 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -47,17 +47,12 @@ jobs: - name: Install dependencies uses: ./.github/actions/install-dependencies - - name: Install sonar-scanner and build-wrapper - uses: SonarSource/sonarcloud-github-c-cpp@44cc4d3d487fbc35e5c29b0a9d717be218d3a0e8 # v3.2.0 - - - name: Run build-wrapper - run: | - cmake -B build - build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build + - name: Generate compilation database + run: cmake -B build - name: Run sonar-scanner + uses: SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 # v4.2.1 + with: + args: --define sonar.cfamily.compile-commands=build/compile_commands.json env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: | - sonar-scanner --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"