From a1e9b03831f37898adcffed063777d305c0528e3 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Wed, 14 Jan 2026 09:44:20 +0000 Subject: [PATCH] Skip preview workflow for fork PRs Fork PRs don't have access to repository secrets, causing the GCP auth and PR comment steps to fail. Instead of failing, skip the preview job entirely for fork PRs. The job will show as 'skipped' rather than 'failed', allowing fork PRs to be merged based on the CI check alone. Claude-Generated-By: Claude Code (cli/claude-opus-4-5=100%) Claude-Steers: 2 Claude-Permission-Prompts: 1 Claude-Escapes: 0 --- .github/workflows/preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 8f5c812..f8700b4 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -16,6 +16,8 @@ jobs: preview: name: Preview Changes runs-on: ubuntu-latest + # Skip preview for fork PRs - they don't have access to secrets + if: github.event.pull_request.head.repo.full_name == github.repository environment: production steps: - name: Checkout code