Skip to content

Commit 0805e66

Browse files
committed
Add sonar-project.properties
1 parent 8eb0a24 commit 0805e66

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212

1313
steps:
1414
- name: Checkout source code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Important for SonarCloud analysis
1618

1719
- name: Set up Node.js
1820
uses: actions/setup-node@v3
@@ -26,13 +28,7 @@ jobs:
2628
run: echo "No tests defined yet"
2729

2830
- name: SonarCloud Analysis
29-
uses: sonarsource/[email protected]
30-
with:
31-
projectBaseDir: .
32-
args: >
33-
-Dsonar.projectKey=IT21276446_user-auth-microservice
34-
-Dsonar.organization=it21276446
35-
-Dsonar.host.url=https://sonarcloud.io
31+
uses: SonarSource/sonarqube-scan-action@v5
3632
env:
3733
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3834

sonar-project.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
sonar.projectKey=IT21276446_user-auth-microservice
2+
sonar.organization=it21276446
3+
4+
5+
# This is the name and version displayed in the SonarCloud UI.
6+
#sonar.projectName=user-auth-microservice
7+
#sonar.projectVersion=1.0
8+
9+
10+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
11+
#sonar.sources=.
12+
13+
# Encoding of the source code. Default is default system encoding
14+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)