Skip to content

Commit 5818db4

Browse files
committed
add SonarQube scan
1 parent 531009c commit 5818db4

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/static_analysis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
- name: Upload SARIF
128128
uses: github/codeql-action/upload-sarif@v4
129129
with:
130-
sarif_file: pvs-${{ matrix.board }}.sarif
130+
sarif_file: pvs-studio-${{ matrix.board }}.sarif
131131
category: PVS-Studio
132132

133133
- name: Upload artifact
@@ -173,8 +173,7 @@ jobs:
173173
uses: SonarSource/sonarqube-scan-action@v6
174174
env:
175175
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
176-
SONAR_ROOT_CERT: ${{ secrets.SONAR_ROOT_CERT }}
177176
with:
178177
# Consult https://docs.sonarsource.com/sonarqube-server/latest/analyzing-source-code/scanners/sonarscanner/ for more information and options
179178
args: >
180-
--define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
179+
--define sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json

sonar-project.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
sonar.projectKey=hathach_tinyusb
2+
sonar.organization=hathach
3+
4+
5+
# This is the name and version displayed in the SonarCloud UI.
6+
sonar.projectName=tinyusb
7+
sonar.projectVersion=0.19.0
8+
9+
10+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
11+
#sonar.sources=.
12+
13+
# Encoding of the source code. Default is default system encoding
14+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)