Skip to content

Commit 0335b24

Browse files
chore(ci): skip Link job on fork PRs (#4915)
The Link job requires SUPABASE_ACCESS_TOKEN and SUPABASE_PROJECT_ID secrets which are unavailable to fork PRs. Without this guard, the job always fails on external contributions, creating a misleading red CI status that distracts both contributors and reviewers. The if condition checks github.event.pull_request.head.repo.fork and skips the job entirely for fork PRs, showing it as 'skipped' instead of 'failed'. On pushes to develop and PRs from branches within the main repo, the job continues to run normally. Co-authored-by: Andrew Valleteau <avallete@users.noreply.github.com>
1 parent 35867ca commit 0335b24

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989

9090
link:
9191
name: Link
92+
if: ${{ !github.event.pull_request.head.repo.fork }}
9293
runs-on: ubuntu-latest
9394
steps:
9495
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)