diff --git a/.github/workflows/pull-request-build.yml b/.github/workflows/pull-request-build.yml index f2e056085a0b..ea5e395e8702 100644 --- a/.github/workflows/pull-request-build.yml +++ b/.github/workflows/pull-request-build.yml @@ -18,7 +18,8 @@ env: jobs: aws-cli-v2-pr-build: - if: github.event.pull_request.draft == false + # Don't run on drafts or for fork-orign PRs, since they won't have access + if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest permissions: id-token: write