Skip to content

Commit 3da8c4a

Browse files
Add SonarQube scan configuration
1 parent caa0a32 commit 3da8c4a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/sonar.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: SonarQube Scan
2+
3+
on:
4+
push:
5+
tags:
6+
- sonar
7+
8+
9+
jobs:
10+
build:
11+
name: Build and analyze
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18+
- uses: SonarSource/sonarqube-scan-action@v6
19+
env:
20+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
22+

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonar.projectKey=radpointhq_cpp_redis_73c57c4b-5b0d-41ae-9b87-9ed5ec9e13c0

0 commit comments

Comments
 (0)