Skip to content

Commit f7f2eb0

Browse files
committed
Use credentials when checking for milestones
1 parent b70cb50 commit f7f2eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ci/scripts/detect-jdk-updates.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if [[ $current = $latest ]]; then
4343
exit 0;
4444
fi
4545

46-
milestone_response=$( curl -s https://api.github.com/repos/${GITHUB_ORGANIZATION}/${GITHUB_REPO}/milestones\?state\=open )
46+
milestone_response=$( curl -s -u ${GITHUB_USERNAME}:${GITHUB_PASSWORD} https://api.github.com/repos/${GITHUB_ORGANIZATION}/${GITHUB_REPO}/milestones\?state\=open )
4747
milestone_result=$( jq -r -c --arg MILESTONE "$MILESTONE" '.[] | select(has("title")) | select(.title==$MILESTONE)' <<< "$milestone_response" )
4848
if [[ ${milestone_result} = "null" || ${milestone_result} = "" ]]; then
4949
echo "Could not parse milestone: $milestone_response"

0 commit comments

Comments
 (0)