From 9a1f553baacacdaed3724c94fa8093621164f50e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Jun 2026 14:22:28 +0000 Subject: [PATCH 1/2] Initial plan From d4b0bcafc8bf7b1ead19a444964545e3b9355fc4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Jun 2026 14:25:04 +0000 Subject: [PATCH 2/2] fix: use pull_request_target to grant write permissions for PR preview deploy --- .github/workflows/pr-preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 68f7a95..ea299b5 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -1,7 +1,7 @@ name: PR Preview on: - pull_request: + pull_request_target: types: [opened, synchronize, reopened, closed] permissions: @@ -15,6 +15,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Setup Node.js uses: actions/setup-node@v4