Skip to content

Commit 1310086

Browse files
update SonarCloud trigger condition to check for SONAR_TOKEN presence
1 parent 99e6d33 commit 1310086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ jobs:
7474
sonarCloudTrigger:
7575
needs: build
7676
name: SonarCloud Trigger
77-
if: github.repository == 'creativeprojects/resticprofile'
7877
runs-on: ubuntu-latest
7978
steps:
8079
- name: Clone Repository
@@ -91,6 +90,7 @@ jobs:
9190

9291
- name: Analyze with SonarCloud
9392
uses: SonarSource/sonarqube-scan-action@v5
93+
if: ${{ env.SONAR_TOKEN != '' }}
9494
env:
9595
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9696
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)