diff --git a/.github/workflows/enforce-issue-labelling.yml b/.github/workflows/enforce-issue-labelling.yml index 0f5c6d0f6..113fccd28 100644 --- a/.github/workflows/enforce-issue-labelling.yml +++ b/.github/workflows/enforce-issue-labelling.yml @@ -21,8 +21,11 @@ jobs: ISSUE_NUMBER=$(jq -r '.issue.number' $GITHUB_EVENT_PATH) REPO_OWNER=$(jq -r '.repository.owner.login' $GITHUB_EVENT_PATH) REPO_NAME=$(jq -r '.repository.name' $GITHUB_EVENT_PATH) - curl -X PATCH -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + curl -L \ + -X PATCH \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/issues/$ISSUE_NUMBER \ -d '{"state":"open"}' exit 1