The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-6970-78c7b96c642d2b929bd8751f48ae3ff0f851a4d4
 has failed.
Run started by GitHub user Yicong-Huang (triggered by Yicong-Huang).

Head commit for run:
a4e93b3a96249110b776019fbd9b90095cc4c571 / Yicong Huang 
<[email protected]>
fix(ci): fix backport auto-label and skip fix(ci) from backport (#6970)

### What changes were proposed in this PR?

The Backport Auto Label workflow crashed on every PR into `main` with
`Cannot find module '@actions/github'`: it built a second Octokit via
`require("@actions/github")`, but github-script's `require` resolves
from the checked-out workspace, which has no such package. Regressed in
#6962.

Instead of github-script's `__original_require__` escape hatch, this
splits the single step into two, each with its own `github-token`, so no
second Octokit is built in-script:

- **Label** (PAT): all reads and label writes, so a `labeled` event
still retriggers the backport pre-merge check.
- **Report** (GITHUB_TOKEN): requests reviewers and upserts the report
comment as `github-actions[bot]`.

Also skips `fix(ci):` PRs — CI-only fixes are never backported. Behavior
is otherwise unchanged.

### Any related issues, documentation, discussions?

Closes #6969

### How was this PR tested?

- `node --check` on both script bodies and a YAML parse of the workflow.
- This PR's own Backport Auto Label check stays red until merge:
`pull_request_target` runs the base-branch (still-broken) workflow.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.8)

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/30398740931

With regards,
GitHub Actions via GitBox

Reply via email to