diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8798fd6..b5dcb1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,8 @@ jobs: run: composer phpcs - name: Execute tests (Unit and Feature) run: composer test - - name: Run SonarCloud scanner - uses: minvws/nl-irealisatie-generic-pipelines/.github/actions/sonarcloud@main - with: - sonar-token: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file + - name: 'Run SonarCloud scanner' + if: ${{contains(github.ref, '/pull/')}} + uses: SonarSource/sonarcloud-github-action@v2.2.0 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}