Skip to content

Commit 557302c

Browse files
authored
Add Sonarqube
1 parent 64c8563 commit 557302c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/sonar.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Sonarqube
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
CI:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: SonarQube Scan
15+
uses: sonarsource/sonarqube-scan-action@master
16+
env:
17+
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
18+
SONAR_HOST_URL: ${{secrets.SONAR_HOST_URL}}
19+
with:
20+
args: -Dsonar.projectKey=${{github.event.repository.name}}

0 commit comments

Comments
 (0)