fix: add fallback to GITHUB_TOKEN for checkout token
- Use GH_PAT if available, otherwise fallback to GITHUB_TOKEN - This prevents 'token not supplied' errors when GH_PAT is not configured
This commit is contained in:
4
.github/workflows/build-reusable.yml
vendored
4
.github/workflows/build-reusable.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
|
||||
ref: ${{ inputs.ref }}
|
||||
|
||||
- name: Install uv and Python
|
||||
@@ -95,7 +95,7 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 1
|
||||
token: ${{ secrets.GH_PAT }}
|
||||
token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}
|
||||
ref: ${{ inputs.ref }}
|
||||
|
||||
- name: Install uv and Python
|
||||
|
||||
Reference in New Issue
Block a user