diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa638b80f5..54ff0dc876 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -185,7 +185,7 @@ jobs: name: "${{ github.sha }}-e2e-coverage" continue-on-error: true - name: sonarcloud - if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }} + if: ${{ env.GIT_DIFF && !github.event.pull_request.draft && env.SONAR_TOKEN != null}} uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}