File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 15
15
- uses : actions/checkout@v4
16
16
with :
17
17
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
18
- - name : Install sonar-scanner
19
- uses : sonarsource/sonarcloud-github-c-cpp@v3
20
18
- name : Install Ninja
21
19
run : |
22
20
wget https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip
@@ -33,10 +31,12 @@ jobs:
33
31
-DCMAKE_CXX_COMPILER_CLANG_SCAN_DEPS=clang-scan-deps-${{env.CLANG_VERSION}}
34
32
# The project needs to be built so the `.modmap` files are generated
35
33
cmake --build build --target all
36
- - name : Run sonar-scanner
34
+ - name : SonarQube Scan
35
+ uses : SonarSource/sonarqube-scan-action@v4
37
36
env :
38
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
38
SONAR_TOKEN : ${{ secrets.SONARCLOUD_TOKEN }} # Put the name of your token here
40
- run : |
41
- # Set the property "sonar.cfamily.compile-commands" to the compilation database file
42
- sonar-scanner --define sonar.cfamily.compile-commands=build/compile_commands.json
39
+ with :
40
+ args : >
41
+ # Set the property "sonar.cfamily.compile-commands" to the compilation database file
42
+ --define sonar.cfamily.compile-commands=build/compile_commands.json
You can’t perform that action at this time.
0 commit comments