diff --git a/.github/workflows/infra-deploy.yml b/.github/workflows/infra-deploy.yml index 3045801b614de..616fc99748610 100644 --- a/.github/workflows/infra-deploy.yml +++ b/.github/workflows/infra-deploy.yml @@ -30,6 +30,8 @@ permissions: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: publish: + # Forked pull requests do not have the AWS access needed for preview deployments. + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} runs-on: developer_site_runner steps: - name: Configure AWS credentials from Test account