From df8a36496304a86f61e72f814cbd5dfa17c0ba1f Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Mon, 24 Feb 2025 13:33:08 -0800 Subject: [PATCH] chore: fallback to repo token if repo scoped does not exist --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 7db4079fc..807a91c3b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -20,7 +20,7 @@ jobs: fetch-depth: 0 repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }} - token: ${{ secrets.REPO_SCOPED_TOKEN }} + token: ${{ secrets.REPO_SCOPED_TOKEN || github.token }} - name: Setup environment uses: ./.github/actions/setup-environment