ci: fork-safe checkout for lint workflow (#5887)

Use conditional ref to support forks and avoid checkout failures.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5887-ci-fork-safe-checkout-for-lint-workflow-2806d73d36508139b9effa6d18e1cadb)
by [Unito](https://www.unito.io)
This commit is contained in:
Benjamin Lu
2025-10-01 17:26:21 -07:00
committed by GitHub
parent e9352f613e
commit bf9659fb2c

View File

@@ -15,7 +15,7 @@ jobs:
- name: Checkout PR
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || github.ref }}
- name: Install pnpm
uses: pnpm/action-setup@v4