Skip to content

Commit 05190f7

Browse files
authored
chore: sonarqube (#13)
1 parent 9827fe4 commit 05190f7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/sonarqube.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: SonarQube
2+
3+
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
11+
12+
jobs:
13+
sonarqube:
14+
name: SonarQube
15+
runs-on: self-hosted
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
22+
- name: SonarQube file
23+
run: |
24+
echo "sonar.projectKey=${{ github.event.repository.name }}" > sonar-project.properties
25+
26+
- name: SonarQube Scan
27+
uses: sonarsource/[email protected]
28+
env:
29+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

0 commit comments

Comments
 (0)