diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index e70c9b99e2c..5c678c394e4 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -28,6 +28,8 @@ jobs: - name: "🩻 SonarCloud Scan" id: sonarcloud uses: matrix-org/sonarcloud-workflow-action@v2.3 + # workflow_run fails report against the develop commit always, we don't want that for PRs + continue-on-error: ${{ github.event.workflow_run.head_branch != 'develop' }} with: repository: ${{ github.event.workflow_run.head_repository.full_name }} is_pr: ${{ github.event.workflow_run.event == 'pull_request' }}