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:
8
.github/workflows/build-reusable.yml
vendored
8
.github/workflows/build-reusable.yml
vendored
@@ -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
|
||||
|
||||
3
.github/workflows/link-check.yml
vendored
3
.github/workflows/link-check.yml
vendored
@@ -12,6 +12,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
- uses: lycheeverse/lychee-action@v2
|
||||
with:
|
||||
args: --no-progress --insecure --user-agent 'curl/7.68.0' --exclude '.*api\.star-history\.com.*' --accept 200,201,202,203,204,205,206,207,208,226,300,301,302,303,304,305,306,307,308,503 README.md docs/ apps/ examples/ benchmarks/
|
||||
|
||||
5
.github/workflows/release-manual.yml
vendored
5
.github/workflows/release-manual.yml
vendored
@@ -19,6 +19,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
|
||||
- name: Validate version
|
||||
run: |
|
||||
@@ -73,6 +76,8 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
ref: 'main'
|
||||
|
||||
- name: Download all artifacts
|
||||
|
||||
Reference in New Issue
Block a user