From 5f7fac185251afded1acca9bcc29bf78d54f35da Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Wed, 3 Sep 2025 16:53:31 -0400 Subject: [PATCH] [BUGFIX] [Github Actions] BUILD_WRAPPER_OUT_DIR environment variable fixed. https://github.com/SonarSource/sonarqube-scan-action/blob/f932b66/README.md --- .github/workflows/sonarcloud.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 6298c3d..e126f4b 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-24.04 env: # Directory where build-wrapper output will be placed - BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory + BUILD_WRAPPER_OUT_DIR: build steps: - uses: actions/checkout@v5 with: @@ -64,6 +64,6 @@ jobs: with: # Consult https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/scanners/sonarscanner/ for more information and options 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 --define sonar.coverageReportPaths=coverage.xml # yamllint enable rule:line-length