File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ jobs:
4040 steps :
4141 - uses : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
4242 with :
43- # GITHUB_TOKEN can normally convert PRs to draft and back. If those
44- # GraphQL mutations ever fail with "Resource not accessible by
45- # integration", add a classic PAT with `repo` scope as CLA_GATE_PAT.
46- github-token : ${{ secrets.CLA_GATE_PAT || github.token }}
43+ # The convertPullRequestToDraft/markPullRequestReadyForReview GraphQL
44+ # mutations require a user token; GITHUB_TOKEN fails with "Resource
45+ # not accessible by integration" (seen on #12036). Use the bot PAT,
46+ # which also lets the ready_for_review/review_requested events from
47+ # restore() trigger the linked_issue_review workflow.
48+ github-token : ${{ secrets.HAYSTACK_BOT_TOKEN }}
4749 script : |
4850 const CLA_CONTEXT = "license/cla";
4951 const LABEL = "cla-pending";
You can’t perform that action at this time.
0 commit comments