Skip to content

Commit 39ebe16

Browse files
committed
esp/ci: Use CI_JOB_TOKEN instead of BOT_TOKEN to clone repos
1 parent 1a9d4ac commit 39ebe16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ sign_aarch64-apple-darwin:
412412
if [ -n "${TEST_APP_IDF_CUSTOM_BRANCH:-}" ]; then
413413
echo "TEST_APP_IDF_CUSTOM_BRANCH=$TEST_APP_IDF_CUSTOM_BRANCH"
414414
# Clone esp-idf
415-
git clone --shallow-submodules --recursive --single-branch --branch $TEST_APP_IDF_CUSTOM_BRANCH -- https://gitlab-ci-token:${BOT_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/espressif/esp-idf.git esp-idf
415+
git clone --shallow-submodules --recursive --single-branch --branch $TEST_APP_IDF_CUSTOM_BRANCH -- https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/espressif/esp-idf.git esp-idf
416416
export IDF_PATH=$PWD/esp-idf
417417
# Activate pyenv
418418
if [ $(command -v pyenv) ]; then
@@ -426,7 +426,7 @@ sign_aarch64-apple-darwin:
426426
fi
427427
idf.py --version || true
428428
pushd $IDF_PATH/components
429-
git clone --shallow-submodules --recursive --single-branch --branch $TEST_APP_ESP_DSP_CUSTOM_BRANCH -- https://gitlab-ci-token:${BOT_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/idf/esp-dsp.git esp-dsp
429+
git clone --shallow-submodules --recursive --single-branch --branch $TEST_APP_ESP_DSP_CUSTOM_BRANCH -- https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/idf/esp-dsp.git esp-dsp
430430
pushd $PWD/esp-dsp/test_app
431431

432432
test_esp_dsp:

0 commit comments

Comments
 (0)