From eb691657814193a16959a6c32e1151cb2b40efe9 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 9 May 2021 14:39:13 +0200 Subject: [PATCH] Changed event for preview deployments to use pull_request_target --- .github/workflows/deploy-preview.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index cb168c6f..11c9ca84 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -1,7 +1,7 @@ name: Deploy preview on: - pull_request: null + pull_request_target: null jobs: deploy: @@ -25,7 +25,6 @@ jobs: - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.1 with: - token: ${{ secrets.PREVIEW_DEPLOY_TOKEN }} branch: preview-env folder: build target-folder: ${{ steps.generate_slug.outputs.slug }}