From f26e93751401a52f5cabc7b07064c01f63d96b17 Mon Sep 17 00:00:00 2001 From: Proddy Date: Mon, 4 Aug 2025 20:48:55 +0200 Subject: [PATCH] Update sonar --- .github/workflows/sonar_check.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sonar_check.yml b/.github/workflows/sonar_check.yml index 6c8da39e3..6a7c60478 100644 --- a/.github/workflows/sonar_check.yml +++ b/.github/workflows/sonar_check.yml @@ -20,15 +20,15 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Install sonar-scanner and build-wrapper - uses: SonarSource/sonarcloud-github-c-cpp@v2 - - - name: Run build-wrapper - run: build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make all - - - name: Run sonar-scanner + - name: Install Build Wrapper + uses: SonarSource/sonarqube-scan-action/install-build-wrapper@master + - name: Run Build Wrapper + run: build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make all + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@master 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" + with: + args: > + --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json" +