Skip to content

Commit f522b69

Browse files
authored
fix: add sonarqube scanner github workflow (#1970)
Signed-off-by: Stephen Mackenzie <[email protected]>
1 parent 895d54b commit f522b69

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/sonarcloud.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: SonarQube
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
sonarqube:
8+
name: SonarQube Scan
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+
with:
13+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
14+
- name: SonarQube Scan
15+
uses: SonarSource/sonarqube-scan-action@2500896589ef8f7247069a56136f8dc177c27ccf #v5.2.0
16+
env:
17+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)