diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21482ef3e55..e480bac1d31 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -97,7 +97,7 @@ jobs: with: name: "${{ github.sha }}-coverage" - name: sonarcloud - if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }} + if: ${{ env.SONAR_TOKEN != null && env.GIT_DIFF && !github.event.pull_request.draft }} uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}