mirror of
https://github.com/status-im/consul.git
synced 2025-01-12 23:05:28 +00:00
add Authorization header in GitHub API call (#7436)
This commit is contained in:
parent
7777891aa6
commit
8fbd812be9
@ -64,7 +64,7 @@ function cherry_pick_with_slack_notification {
|
||||
}
|
||||
|
||||
# search for the PR labels applicable to the specified commit
|
||||
resp=$(curl -f -s "https://api.github.com/search/issues?q=repo:$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME+sha:$CIRCLE_SHA1")
|
||||
resp=$(curl -f -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/search/issues?q=repo:$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME+sha:$CIRCLE_SHA1")
|
||||
ret="$?"
|
||||
if [[ "$ret" -ne 0 ]]; then
|
||||
status "The GitHub API returned $ret which means it was probably rate limited."
|
||||
|
Loading…
x
Reference in New Issue
Block a user