From f7f2eb0bb4f49547be137cb8bb4c1ac6064fa654 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 19 Jan 2023 14:04:38 -0800 Subject: [PATCH] Use credentials when checking for milestones --- ci/scripts/detect-jdk-updates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/scripts/detect-jdk-updates.sh b/ci/scripts/detect-jdk-updates.sh index c43206bb7d..387b8bdcca 100755 --- a/ci/scripts/detect-jdk-updates.sh +++ b/ci/scripts/detect-jdk-updates.sh @@ -43,7 +43,7 @@ if [[ $current = $latest ]]; then exit 0; fi -milestone_response=$( curl -s https://api.github.com/repos/${GITHUB_ORGANIZATION}/${GITHUB_REPO}/milestones\?state\=open ) +milestone_response=$( curl -s -u ${GITHUB_USERNAME}:${GITHUB_PASSWORD} https://api.github.com/repos/${GITHUB_ORGANIZATION}/${GITHUB_REPO}/milestones\?state\=open ) milestone_result=$( jq -r -c --arg MILESTONE "$MILESTONE" '.[] | select(has("title")) | select(.title==$MILESTONE)' <<< "$milestone_response" ) if [[ ${milestone_result} = "null" || ${milestone_result} = "" ]]; then echo "Could not parse milestone: $milestone_response"