Skip to content

Commit 623be53

Browse files
committed
Copied in the sonar action coz this repo is public
1 parent bfcf068 commit 623be53

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ jobs:
7373
- name: Coding style PSR12 Check
7474
run: vendor/bin/phpcs
7575

76-
- name: Run SonarCloud scanner
77-
uses: minvws/nl-irealisatie-generic-pipelines/.github/actions/sonarcloud@main
76+
- name: 'Run SonarCloud scanner'
77+
if: ${{contains(github.ref, '/pull/')}}
78+
uses: SonarSource/[email protected]
79+
env:
80+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
81+
- name: 'Run SonarCloud scanner'
82+
if: ${{!contains(github.ref, '/pull/')}}
83+
uses: SonarSource/[email protected]
84+
env:
85+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
7886
with:
79-
sonar-token: ${{ secrets.SONAR_TOKEN }}
87+
args: -Dsonar.branch.name=${{ github.ref_name }}

0 commit comments

Comments
 (0)