diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 779b17a..8a00df6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,7 +151,7 @@ jobs: - name: SonarCloud analysis if: > - (github.event_name == 'push' && github.ref == 'refs/heads/main') || + (github.event_name == 'push' && github.ref_name == github.event.repository.default_branch) || (github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}