ci: fallback to github.token in ESLint workflow (#431)

- Use `github.token` as a fallback if `secrets.PAT` is not available in the ESLint workflow.

Signed-off-by: Sped0n <hi@sped0n.com>
This commit is contained in:
Spedon
2025-01-01 21:44:12 +08:00
committed by GitHub
parent 082f5f4961
commit d9b4100d17

View File

@@ -19,7 +19,7 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT || github.token }}
- name: Setup pnpm - name: Setup pnpm
uses: pnpm/action-setup@v3 uses: pnpm/action-setup@v3