chore(nimbus):Update gh token for external config (#10274)

Because

- Currently token `GH_USER` on CI has limited scope associated with it,
and we want to fetch resources from private repo. We have added new
token `GH_EXTERNAL_CONFIG_TOKEN` with the required scope

This commit

- Update external config job to use new token value

Fixes #10273
This commit is contained in:
Yashika Khurana 2024-02-12 13:49:17 -08:00 коммит произвёл GitHub
Родитель b4ebc431db
Коммит 29b4452c94
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -493,7 +493,7 @@ jobs:
- "32:8e:72:0b:9a:a1:1c:b8:7e:90:e1:53:a3:73:68:47" # for git pushes from circleci, since relies on ssh - "32:8e:72:0b:9a:a1:1c:b8:7e:90:e1:53:a3:73:68:47" # for git pushes from circleci, since relies on ssh
- checkout - checkout
- gh/setup: - gh/setup:
token: GH_TOKEN # for gh commands from circleci, since relies on user token, since por que no los dos? token: GH_EXTERNAL_CONFIG_TOKEN # for gh commands from circleci, since relies on user token, since por que no los dos?
- run: - run:
name: Setup Git name: Setup Git
command: | command: |
@ -506,7 +506,7 @@ jobs:
git checkout main git checkout main
git pull origin main git pull origin main
cp .env.sample .env cp .env.sample .env
env GITHUB_BEARER_TOKEN="${GH_TOKEN}" make fetch_external_resources FETCH_ARGS="--summary fetch-summary.txt" env GITHUB_BEARER_TOKEN="${GH_EXTERNAL_CONFIG_TOKEN}" make fetch_external_resources FETCH_ARGS="--summary fetch-summary.txt"
mv ./experimenter/fetch-summary.txt /tmp/fetch-summary.txt mv ./experimenter/fetch-summary.txt /tmp/fetch-summary.txt
if python3 ./experimenter/bin/should-pr.py if python3 ./experimenter/bin/should-pr.py
then then