Skip to content

Commit 5609128

Browse files
authored
Merge pull request #50 from sjinks/renovate/sonarsource-sonarcloud-github-c-cpp-3.x
chore(deps): update sonarsource/sonarcloud-github-c-cpp action to v3.2.0
2 parents 2fedc82 + a392f26 commit 5609128

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,12 @@ jobs:
4747
- name: Install dependencies
4848
uses: ./.github/actions/install-dependencies
4949

50-
- name: Install sonar-scanner and build-wrapper
51-
uses: SonarSource/sonarcloud-github-c-cpp@816b1822d71776ee0d32bc012e95024ec52ac1fc # v3.1.0
52-
53-
- name: Run build-wrapper
54-
run: |
55-
cmake -B build
56-
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build
50+
- name: Generate compilation database
51+
run: cmake -B build
5752

5853
- name: Run sonar-scanner
54+
uses: SonarSource/sonarqube-scan-action@bfd4e558cda28cda6b5defafb9232d191be8c203 # v4.2.1
55+
with:
56+
args: --define sonar.cfamily.compile-commands=build/compile_commands.json
5957
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6158
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
62-
run: |
63-
sonar-scanner --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"

0 commit comments

Comments
 (0)