Skip to content

Commit 20d77ef

Browse files
committed
add sonarqube
1 parent edd3b88 commit 20d77ef

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/buf.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Build and analyze
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
17+
- uses: SonarSource/sonarqube-scan-action@v5
18+
env:
19+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
20+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
21+
# If you wish to fail your job when the Quality Gate is red, uncomment the
22+
# following lines. This would typically be used to fail a deployment.
23+
# - uses: SonarSource/sonarqube-quality-gate-action@v1
24+
# timeout-minutes: 5
25+
# env:
26+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sonar.projectKey=wagecloud_wagecloud-website_c392fe74-8ef1-48c0-8103-142272feef08
2+
3+
# Exclude folders from analysis
4+
sonar.exclusions=node_modules/**,.next/**

0 commit comments

Comments
 (0)