From b6da0f0553723e0706a30749838bb10b7caf9040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Sun, 10 Apr 2022 09:19:06 -0700 Subject: [PATCH] Allows E2E to run from forks (#2423) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .github/workflows/e2e.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 36e9acfc..1441aa26 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,6 +1,6 @@ name: E2E test on: - pull_request: + pull_request_target: # So we can test on forks branches: - main paths-ignore: @@ -56,7 +56,8 @@ jobs: - name: Checkout repo uses: actions/checkout@v2 with: - fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} # So we can test on forks + fetch-depth: 2 - name: Use Node ${{ matrix.node }} uses: actions/setup-node@v2