Do not run pull_request_target if the CI gate was skipped!

This commit is contained in:
Dominion
2023-04-29 16:34:53 -04:00
parent 96d3269836
commit 746e79fed0
+1 -1
View File
@@ -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