Skip to content

Commit 7a58b82

Browse files
committed
Fix non-collabrator PR pipeline
1 parent d83ea66 commit 7a58b82

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
run: make test
2121

2222
- name: Process test reports
23+
id: report
2324
run: make process-reports
25+
env:
26+
SONAR_ENABLED: ${{ !!secrets.SONAR_TOKEN }}
27+
if: ${{ env.SONAR_ENABLED == 'true' }}
2428

2529
- name: Build Phar
2630
run: make compile
@@ -35,3 +39,4 @@ jobs:
3539
uses: SonarSource/sonarqube-scan-action@v5
3640
env:
3741
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
42+
if: ${{ steps.report.conclusion == 'success' }}

0 commit comments

Comments
 (0)