File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,14 @@ jobs:
13
13
- uses : actions/checkout@v4
14
14
with :
15
15
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16
- - name : Install sonar-scanner
17
- uses : sonarsource/sonarqube-github-c-cpp@v2
18
- env :
19
- SONAR_HOST_URL : ${{ secrets.SONAR_HOST_URL }} # SonarQube URL is stored in a GitHub secret
20
16
- name : Generate compilation database
21
17
run : |
22
18
mkdir build
23
19
cmake -S . -B build
24
- - name : Run sonar-scanner
20
+ - name : SonarQube Scan
25
21
env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
22
SONAR_TOKEN : ${{ secrets.SONARQUBE_TOKEN }}
28
23
SONAR_HOST_URL : ${{ secrets.SONAR_HOST_URL }} # SonarQube URL is stored in a GitHub secret
29
- run : sonar-scanner --define sonar.cfamily.compile-commands=build/compile_commands.json
24
+ with :
25
+ args : >
26
+ --define sonar.cfamily.compile-commands=build/compile_commands.json
You can’t perform that action at this time.
0 commit comments