From 91f13122eb193d1458d59775126d426eec669cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20L=C3=B3pez?= Date: Tue, 22 Mar 2022 07:52:47 -0700 Subject: [PATCH] Update lint.yml (#2211) Co-authored-by: Peer Richelsen --- .github/workflows/lint.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 78c3db092c..b190c39fcf 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: @@ -8,9 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - 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