Skip to content

Commit 136e627

Browse files
authored
Update on.pr.yml
1 parent a028e27 commit 136e627

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/on.pr.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,16 @@ jobs:
3838
with:
3939
path: ~/.sonar/cache
4040
key: ${{ runner.os }}-sonar
41+
- name: Check Sonar inputs
42+
shell: bash
43+
run: |
44+
[ -n "${{ secrets.SONAR_TOKEN }}" ] && echo "SONAR_TOKEN present" || echo "SONAR_TOKEN missing"
45+
[ -n "${{ vars.SONAR_HOST_URL }}" ] && echo "SONAR_HOST_URL present" || echo "SONAR_HOST_URL missing"
46+
[ -n "${{ vars.SONAR_ORG }}" ] && echo "SONAR_ORG present" || echo "SONAR_ORG missing"
47+
[ -n "${{ vars.SONAR_PROJECT_KEY }}" ] && echo "SONAR_PROJECT_KEY present" || echo "SONAR_PROJECT_KEY missing"
4148
- name: Run Sonar Analysis
4249
run: mvn sonar:sonar
43-
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
50+
-Dsonar.token=${{ secrets.SONAR_TOKEN }}
4451
-Dsonar.host.url=${{ vars.SONAR_HOST_URL }}
4552
-Dsonar.organization=${{ vars.SONAR_ORG }}
4653
-Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }}

0 commit comments

Comments
 (0)