Skip to content

Commit 88f9024

Browse files
committed
Fix SonarQube build-wrapper path and usage
This commit updates the SonarQube GitHub Actions workflow to follow the officially recommended configuration. The previous workflow failed because the CFamily analyzer could not locate the generated compile_commands.json file due to an incorrect or quoted build-wrapper output path. Changes included: - Align workflow steps with SonarSource’s recommended sequence. - Ensure build-wrapper-linux-x86-64 correctly produces output under $BUILD_WRAPPER_OUT_DIR. This update should allow the C/C++ analysis to run successfully and avoid exit code 3 errors in future SonarQube scans.
1 parent 435b8aa commit 88f9024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/sonarqube.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@ jobs:
117117
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
118118
with:
119119
args: >
120-
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
120+
--define "sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"

0 commit comments

Comments
 (0)