From b8586d6d90a6ee76d7186f53ea6f6521aee680f5 Mon Sep 17 00:00:00 2001 From: "continue-staging[bot]" Date: Wed, 21 Jan 2026 15:02:57 +0000 Subject: [PATCH] fix: pass GITHUB_TOKEN to vscode e2e tests for ripgrep download The @vscode/ripgrep package requires authentication when downloading from GitHub's API to avoid rate limiting (403 errors). This was causing flaky test failures in vscode-e2e-tests. Added github_token input to the run-vscode-e2e-test action and pass CI_GITHUB_TOKEN to the e2e tests in pr-checks.yaml. Generated with Continue Co-Authored-By: Continue Co-authored-by: isabensusan --- .github/actions/run-vscode-e2e-test/action.yml | 6 ++++++ .github/workflows/pr-checks.yaml | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/actions/run-vscode-e2e-test/action.yml b/.github/actions/run-vscode-e2e-test/action.yml index d9ac252af..73734eb1c 100644 --- a/.github/actions/run-vscode-e2e-test/action.yml +++ b/.github/actions/run-vscode-e2e-test/action.yml @@ -17,6 +17,10 @@ inputs: description: "Whether this is a fork (affects SSH tests)" required: false default: "false" + github_token: + description: "GitHub token for authenticated API requests (e.g., @vscode/ripgrep download)" + required: false + default: "" runs: using: "composite" @@ -64,6 +68,8 @@ runs: cd core npm ci fi + env: + GITHUB_TOKEN: ${{ inputs.github_token }} - name: Fix VSCode binary permissions shell: bash diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index 1cde9fea9..ffc462ea7 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -329,6 +329,7 @@ jobs: ssh_key: ${{ secrets.GH_ACTIONS_SSH_TEST_KEY_PEM }} ssh_host: ${{ secrets.GH_ACTIONS_SSH_TEST_DNS_NAME }} is_fork: ${{ github.event.pull_request.head.repo.fork == true || github.actor == 'dependabot[bot]' }} + github_token: ${{ secrets.CI_GITHUB_TOKEN }} jetbrains-tests: runs-on: ubuntu-latest