diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94b23e680..af63b4677 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,8 +22,8 @@ jobs: if: | ${{ github.event_name == 'pull_request' || - (github.event_name == 'push' && - github.event.pull_request.head.repo.full_name != 'WebGoat/WebGoat') + (github.event_name == 'push' && github.event.pull_request.head.repo.full_name != 'WebGoat/WebGoat') || + (github.event.name == 'push' && github.event.repository != 'WebGoat/WebGoat') }} runs-on: ${{ matrix.os }} strategy: