From 6c4256c30f89757bc80c6ca58f3bd09cb65d8434 Mon Sep 17 00:00:00 2001 From: Mark IJbema Date: Mon, 29 Jun 2026 12:06:54 +0200 Subject: [PATCH] fix(ci): fall back to github token for visual checkout --- .github/workflows/visual-regression.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/visual-regression.yml b/.github/workflows/visual-regression.yml index 69ebd6a17a6..654b4f32ced 100644 --- a/.github/workflows/visual-regression.yml +++ b/.github/workflows/visual-regression.yml @@ -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"