Skip to content

Commit 1c2fc97

Browse files
committed
Skip Sonar scan when SONAR_TOKEN is missing
1 parent 37de161 commit 1c2fc97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20-
- uses: SonarSource/sonarqube-scan-action@master
20+
- if: ${{ secrets.SONAR_TOKEN != '' }}
21+
uses: SonarSource/sonarqube-scan-action@master
2122
env:
2223
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2324
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)