diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 382f64bec4..99df8f5514 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -13,7 +13,7 @@ jobs: analyze: # Analysis of code in forked repositories is skipped, as such workflow runs # do not have access to the requisite secrets. - if: github.event.pull_request.head.repo.full_name == github.repository + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository permissions: contents: read runs-on: ubuntu-22.04