Skip to content

ci: use PR head SHA for fork PR checkout#171

Merged
quiet-node merged 1 commit into
mainfrom
fix/fork-pr-ci
May 14, 2026
Merged

ci: use PR head SHA for fork PR checkout#171
quiet-node merged 1 commit into
mainfrom
fix/fork-pr-ci

Conversation

@quiet-node
Copy link
Copy Markdown
Owner

Summary

  • pr-pipeline.yml was passing github.head_ref (branch name) to all three sub-workflows, which caused actions/checkout to fetch refs/heads/<branch> from the base repo (quiet-node/thuki)
  • For PRs from forks the branch only exists in the contributor's fork, so the fetch fails with exit code 1 before any tests run
  • Fix: pass github.event.pull_request.head.sha (the commit SHA) instead — GitHub makes this ref available on the base repo for all PRs regardless of fork or branch origin

Test plan

  • Merge this, then verify the next fork PR's CI jobs reach the test/build steps

Signed-off-by: Logan Nguyen <lg.131.dev@gmail.com>
@quiet-node quiet-node changed the title fix(ci): use PR head SHA for fork PR checkout ci: use PR head SHA for fork PR checkout May 14, 2026
@quiet-node quiet-node merged commit 11df343 into main May 14, 2026
3 checks passed
@quiet-node quiet-node deleted the fix/fork-pr-ci branch May 14, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant