diff --git a/util/jenkins/ansible-provision.sh b/util/jenkins/ansible-provision.sh index 21644bb1c..048b8247a 100644 --- a/util/jenkins/ansible-provision.sh +++ b/util/jenkins/ansible-provision.sh @@ -785,9 +785,7 @@ EOF configuration_secure_json=$(aws secretsmanager get-secret-value --region "${region}" --secret-id "${configuration_secure_secret}" --query SecretString --output text) app_git_ssh_key=$(echo "$configuration_secure_json" | jq -r '._local_git_identity // empty') - # Required by internal edx-platform-private Dockerfile (BuildKit GIT_AUTH_TOKEN) to fetch - # private repos such as edx-internal and edx-themes over HTTPS. - app_github_token=$(echo "$configuration_secure_json" | jq -r '.GITHUB_TOKEN // .github_access_token // .github_token // empty') + app_git_pat_token=$(echo "$configuration_secure_json" | jq -r '.LOCAL_GIT_PAT_TOKEN // empty') # specify variable names app_hostname="courses" diff --git a/util/jenkins/app-container-provisioner.sh b/util/jenkins/app-container-provisioner.sh index 6623fa104..4e5439629 100644 --- a/util/jenkins/app-container-provisioner.sh +++ b/util/jenkins/app-container-provisioner.sh @@ -68,7 +68,7 @@ if ! $(docker image inspect ${app_image_name} >/dev/null 2>&1 && echo true || ec curl -fsSL "\$PUBLIC_DOCKERFILE_URL" -o /tmp/edx-platform.Dockerfile set +x - export GITHUB_TOKEN='${app_github_token}' + export GITHUB_TOKEN='${app_git_pat_token}' set -x # Public Dockerfile fetches code from GitHub via EDX_PLATFORM_* build args.