Skip to content

Backport Auto Label workflow fails with "Cannot find module '@actions/github'" #6969

Description

@Yicong-Huang

What happened?

The Backport Auto Label workflow (.github/workflows/backport-auto-label.yml) fails on every PR into main. Its github-script step calls require("@actions/github") to build a second Octokit, but github-script's patched require resolves modules relative to the checked-out workspace — which has no such package — so the step aborts with Cannot find module '@actions/github'. Expected: the step labels fix: PRs and posts its report as before.

How to reproduce?

  1. Open or edit any PR targeting main.
  2. Watch the Backport Auto Label check.
  3. It fails at the "Label fix PRs and request release-manager review" step.

Version/Branch

1.3.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

5040cad (#6962)

What browsers are you seeing the problem on?

No response

Relevant log output

Unhandled error: Error: Cannot find module '@actions/github'
Require stack:

  • /home/runner/work/_actions/actions/github-script/v9/dist/index.js

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions