Skip to content

Commit b67079a

Browse files
julian-rischclaude
andauthored
ci: use HAYSTACK_BOT_TOKEN for CLA draft gate (#12044)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 71e81e2 commit b67079a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/cla_draft_gate.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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";

0 commit comments

Comments
 (0)