From 281ec5df6c0b885b9b2f5bca7d40c4661789b6a5 Mon Sep 17 00:00:00 2001 From: Sam Kim Date: Mon, 30 Mar 2026 12:14:15 -0700 Subject: [PATCH] Fix GitHub Deployment ref for fork PRs With pull_request_target the default ref is the base branch, so the fork's branch name doesn't exist in the base repo. Pass the PR head SHA explicitly so the GitHub Deployments API can resolve it. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/vercel-preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/vercel-preview.yml b/.github/workflows/vercel-preview.yml index 1a75bfd0..891be815 100644 --- a/.github/workflows/vercel-preview.yml +++ b/.github/workflows/vercel-preview.yml @@ -154,6 +154,7 @@ jobs: token: "${{ secrets.GITHUB_TOKEN }}" environment: "Preview (GitHub Actions)" environment-url: "${{ steps.deploy.outputs.alias-url }}" + ref: "${{ github.event.pull_request.head.sha }}" transient-environment: true auto-inactive: true