From 2d2df2d4db2e9e846351bc0147ae02e698b213e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Mon, 28 Mar 2022 12:21:31 -0700 Subject: [PATCH] Attempt to fix linting for external contributors (#2303) --- .github/workflows/lint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 056c9d63..e89e712f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,6 @@ name: Lint on: - pull_request: + pull_request_target: branches: - main jobs: @@ -15,7 +15,8 @@ jobs: - name: Checkout repo uses: actions/checkout@v2 with: - fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 2 - name: Use Node.js 14.x uses: actions/setup-node@v2