Skip to content

Commit de7d498

Browse files
authored
Add GitHub Actions workflow for SonarQube scan
1 parent 7142ffd commit de7d498

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
sonarqube:
12+
name: SonarQube
13+
runs-on: windows-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Shallow clones should be disabled for better analysis
18+
19+
- name: SonarQube Scan
20+
uses: SonarSource/sonarqube-scan-action@v6
21+
env:
22+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
23+
SONAR_HOST_URL: https://sonarcloud.io

0 commit comments

Comments
 (0)