Skip to content

Commit 4e9771b

Browse files
committed
Setup github token env.
1 parent 545dd48 commit 4e9771b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

buildspec/linuxTests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
# followed by Error: Could not delete obsolete instance handle Error: ENOENT: no such file or directory, unlink <path>
1414
AWS_TOOLKIT_TEST_CACHE_DIR: '/tmp/.vscode-test/'
1515
AWS_TOOLKIT_TEST_USER_DIR: '/tmp/.vscode-test/user-data/'
16+
GITHUB_TOKEN: ${GITHUB_READONLY_TOKEN}
1617

1718
phases:
1819
install:
@@ -25,8 +26,6 @@ phases:
2526
pre_build:
2627
commands:
2728
- export HOME=/home/codebuild-user
28-
# produce an API key, set the GITHUB_TOKEN environment var, and vscode-ripgrep will pick it up
29-
- export GITHUB_TOKEN=${GITHUB_READONLY_TOKEN}
3029
- bash buildspec/shared/linux-pre_build.sh
3130

3231
build:

buildspec/packageTestVsix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
AWS_TOOLKIT_TEST_USER_DIR: '/tmp/'
99
# needed or else webpack will cause it to run out of memory
1010
NODE_OPTIONS: '--max-old-space-size=8192'
11+
GITHUB_TOKEN: ${GITHUB_READONLY_TOKEN}
1112

1213
phases:
1314
install:
@@ -20,7 +21,6 @@ phases:
2021
pre_build:
2122
commands:
2223
- export HOME=/home/codebuild-user
23-
- export GITHUB_TOKEN=${GITHUB_READONLY_TOKEN}
2424
- bash buildspec/shared/linux-pre_build.sh
2525

2626
build:

0 commit comments

Comments
 (0)