From 02663a01c925045dcde49a3365f941a5fdc27764 Mon Sep 17 00:00:00 2001 From: stanbot8 Date: Tue, 17 Feb 2026 21:30:07 -0800 Subject: [PATCH] Replace deprecated sonarcloud-github-c-cpp action The SonarSource/sonarcloud-github-c-cpp action has been removed. Migrate to SonarSource/sonarqube-scan-action@v7 and its install-build-wrapper sub-action. --- .github/workflows/sonar-source.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sonar-source.yml b/.github/workflows/sonar-source.yml index a6774f018..eb0d89072 100644 --- a/.github/workflows/sonar-source.yml +++ b/.github/workflows/sonar-source.yml @@ -22,8 +22,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Install sonar-scanner and build-wrapper - uses: SonarSource/sonarcloud-github-c-cpp@v2 + - name: Install Build Wrapper + uses: SonarSource/sonarqube-scan-action/install-build-wrapper@v7 - name: Install dependencies run: | sudo apt-get update @@ -78,9 +78,11 @@ jobs: echo "\n ... \n" tail -n 7 "$FILE" - name: Run sonar-scanner + uses: SonarSource/sonarqube-scan-action@v7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: | - source $(find /home -path "*/bin/*" -name "*thisbdm.sh") - sonar-scanner -X --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" + with: + args: > + -X + --define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json