From 746e79fed0b2429a843899d0410612fbe7fbec75 Mon Sep 17 00:00:00 2001 From: Dominion Date: Sat, 29 Apr 2023 16:34:53 -0400 Subject: [PATCH] Do not run pull_request_target if the CI gate was skipped! --- .github/workflows/ci-suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-suite.yml b/.github/workflows/ci-suite.yml index 9f70810b80..71cfcface4 100644 --- a/.github/workflows/ci-suite.yml +++ b/.github/workflows/ci-suite.yml @@ -54,7 +54,7 @@ jobs: name: Start CI Run Gate needs: security-checkpoint runs-on: ubuntu-latest - if: "!(cancelled() || failure()) && (needs.security-checkpoint.result == 'success' || (needs.security-checkpoint.result == 'skipped' && (github.event_name == 'push' || (github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id && github.event.action != 'labeled'))))" + if: "!(cancelled() || failure()) && (needs.security-checkpoint.result == 'success' || (needs.security-checkpoint.result == 'skipped' && (github.event_name == 'push' || (github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id && github.event_name != 'pull_request_target'))))" steps: - name: GitHub Requires at Least One Step for a Job run: exit 0