chore(ci): fix rate-limiting for backport-assistant

This commit is contained in:
DanStough 2022-05-19 16:08:11 -04:00 committed by Dan Stough
parent 364d4f5efe
commit 8513566872
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
- name: Backport changes to latest release branch
run: |
resp=$(curl -f -s "https://api.github.com/repos/$GITHUB_REPOSITORY/labels?per_page=100")
# Use standard token here
resp=$(curl -f -s -H 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' "https://api.github.com/repos/$GITHUB_REPOSITORY/labels?per_page=100")
ret="$?"
if [[ "$ret" -ne 0 ]]; then
echo "The GitHub API returned $ret"