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 <noreply@continue.dev> Co-authored-by: isabensusan <isabensusan@gmail.com>
This commit is contained in:
committed by
Dallin Romney
parent
a495aa256a
commit
b8586d6d90
@@ -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
|
||||
|
||||
1
.github/workflows/pr-checks.yaml
vendored
1
.github/workflows/pr-checks.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user