From e9352f613e624bd261447ca64d47a28f75f340a7 Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Wed, 1 Oct 2025 16:47:34 -0700 Subject: [PATCH] fix: Remove extra arguments to checkout in favor of the GitHub defaults (#5883) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Should allow this action to run on fork PRs. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5883-fix-Remove-extra-arguments-to-checkout-in-favor-of-the-GitHub-defaults-27f6d73d365081a780f7cf4a5a62c368) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action --- .github/workflows/lint-and-format.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/lint-and-format.yaml b/.github/workflows/lint-and-format.yaml index d9904b0e0..8b63fe0fc 100644 --- a/.github/workflows/lint-and-format.yaml +++ b/.github/workflows/lint-and-format.yaml @@ -15,9 +15,7 @@ jobs: - name: Checkout PR uses: actions/checkout@v5 with: - token: ${{ secrets.GITHUB_TOKEN }} - ref: ${{ github.event.pull_request.head.ref }} - fetch-depth: 0 + ref: ${{ github.head_ref }} - name: Install pnpm uses: pnpm/action-setup@v4