Skip to content

Commit c32b8ae

Browse files
paulbalajiclaude
andcommitted
fix: allow check-warp-deploy to run on fork PRs
Skip GitHub App token generation for fork PRs since they don't have access to secrets. Checks still run, just no PR comment posted. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b0d88c3 commit c32b8ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/check-warp-deploy.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ jobs:
99
pull-requests: write
1010
runs-on: ubuntu-latest
1111
steps:
12+
# Skip token generation for fork PRs (they don't have access to secrets)
1213
- name: Generate GitHub App Token
1314
id: generate-token
15+
if: github.event.pull_request.head.repo.full_name == github.repository
1416
uses: actions/create-github-app-token@v2
1517
with:
1618
app-id: ${{ secrets.HYPER_GONK_APP_ID }}
@@ -29,7 +31,8 @@ jobs:
2931
3032
- name: Check Warp Deploy
3133
env:
32-
PR_NUMBER: ${{ github.event.pull_request.number }}
34+
# Only set PR_NUMBER for non-fork PRs (enables PR commenting)
35+
PR_NUMBER: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.number || '' }}
3336
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
3437
run: |
3538
./scripts/check-warp-deploy.sh ${{ steps.determine-base-sha.outputs.base_sha }} ${{ steps.determine-base-sha.outputs.current_sha }}

0 commit comments

Comments
 (0)