feat: add GH_PAT token and fetch-depth to GitHub Actions workflows

- Add fetch-depth: 1 to all checkout actions for faster checkout
- Add token: ${{ secrets.GH_PAT }} to all checkout actions
- This enables access to private submodules and improves checkout performance
This commit is contained in:
yichuan520030910320
2025-12-24 12:14:51 +08:00
parent 8a2ea37871
commit cbd6c8ab34
3 changed files with 14 additions and 2 deletions

View File

@@ -16,8 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
submodules: recursive
fetch-depth: 1
token: ${{ secrets.GH_PAT }}
ref: ${{ inputs.ref }}
- name: Install uv and Python
uses: astral-sh/setup-uv@v6
@@ -91,8 +93,10 @@ jobs:
steps:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.ref }}
submodules: recursive
fetch-depth: 1
token: ${{ secrets.GH_PAT }}
ref: ${{ inputs.ref }}
- name: Install uv and Python
uses: astral-sh/setup-uv@v6