Skip to content

Commit 6e34632

Browse files
1
1 parent b36f943 commit 6e34632

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/sonarcloud.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
java-version: '17'
2828
distribution: 'temurin'
2929

30+
- name: Verify SonarCloud Token
31+
run: |
32+
if [ -z "${{ secrets.SONAR_TOKEN }}" ]; then
33+
echo "Error: SONAR_TOKEN is not set"
34+
exit 1
35+
fi
36+
3037
- name: SonarCloud Scan
3138
uses: SonarSource/sonarqube-scan-action@v5.0.0
3239
env:
@@ -38,4 +45,4 @@ jobs:
3845
-Dsonar.organization=dd3tech-1
3946
-Dsonar.projectName=dd360-components-docs -Dsonar.projectVersion=1.0
4047
-Dsonar.sourceEncoding=UTF-8 -Dsonar.java.binaries=.
41-
-Dsonar.java.jdkHome=$JAVA_HOME
48+
-Dsonar.java.jdkHome=$JAVA_HOME -Dsonar.verbose=true

0 commit comments

Comments
 (0)