fix(ci): fall back to github token for visual checkout

This commit is contained in:
Mark IJbema
2026-06-29 12:06:54 +02:00
parent c979c8b32e
commit 6c4256c30f
+4 -4
View File
@@ -54,7 +54,7 @@ jobs:
uses: actions/checkout@v6 # kilocode_change
with:
lfs: true
token: ${{ secrets.BOT_PAT }}
token: ${{ secrets.BOT_PAT || github.token }}
ref: ${{ github.head_ref }}
- name: Checkout (fork)
@@ -176,7 +176,7 @@ jobs:
if: needs.check-paths.outputs.is_fork != 'true' && steps.check-baseline-commit.outputs.is_baseline_update != 'true'
id: commit-baselines
env:
GH_TOKEN: ${{ secrets.BOT_PAT }}
GH_TOKEN: ${{ secrets.BOT_PAT || github.token }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -222,7 +222,7 @@ jobs:
uses: actions/checkout@v6 # kilocode_change
with:
lfs: true
token: ${{ secrets.BOT_PAT }}
token: ${{ secrets.BOT_PAT || github.token }}
ref: ${{ github.head_ref }}
- name: Checkout (fork)
@@ -376,7 +376,7 @@ jobs:
if: needs.check-paths.outputs.is_fork != 'true' && steps.check-baseline-commit-vscode.outputs.is_baseline_update != 'true'
id: commit-baselines-vscode
env:
GH_TOKEN: ${{ secrets.BOT_PAT }}
GH_TOKEN: ${{ secrets.BOT_PAT || github.token }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"