Skip to content

Commit 27f97a9

Browse files
dukeduke2016claude
andcommitted
fix(ci): migrate github-script to v8 — repair the repo-wide broken gate check
GitHub's runner infra force-upgrades actions/github-script@v7 to Node 24, where the script-side require('@actions/github') can no longer resolve. Every recent PR shows a red 'gate' check with 'Cannot find module @actions/github' regardless of whether it links an issue. - Pin actions/github-script to ed597411 (v8.0.0) in pr-triage, ci-nudge, issue-triage. - Replace require('@actions/github').getOctokit(APP_TOKEN) with new (github.constructor)({ auth: APP_TOKEN }) — v8.0.0 injects no getOctokit helper (verified against src/async-function.ts at the pinned SHA), and the wrapped require cannot resolve modules without a checkout. - Bump actions/stale to 1e223db (v10.4.0). Diagnosis first surfaced by @sandman-sh in #257 — thank you! This lands separately with a SHA pin and a require-free client construction. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 7b4937b commit 27f97a9

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci-nudge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# back to github-actions[bot], defeating this bot's own purpose.
5656
permission-issues: write
5757

58-
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
58+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
5959
env:
6060
APP_TOKEN: ${{ steps.app-token.outputs.token }}
6161
with:
@@ -65,7 +65,7 @@ jobs:
6565
const marker = process.env.MARKER;
6666
6767
const appClient = process.env.APP_TOKEN
68-
? require('@actions/github').getOctokit(process.env.APP_TOKEN)
68+
? new (github.constructor)({ auth: process.env.APP_TOKEN })
6969
: null;
7070
async function write(fn) {
7171
if (appClient) {

.github/workflows/issue-triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
# of inheriting the App's full installation permissions.
5858
permission-issues: write
5959

60-
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
60+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
6161
with:
6262
# App token when available (→ testsprite-hob[bot]); else the default
6363
# GITHUB_TOKEN (→ github-actions[bot]). Either way the logic is identical.

.github/workflows/pr-triage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
# fallback path (unused by this specific App-token mint).
7272
permission-issues: write
7373

74-
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
74+
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
7575
env:
7676
APP_TOKEN: ${{ steps.app-token.outputs.token }}
7777
with:
@@ -86,7 +86,7 @@ jobs:
8686
const author = pr.user.login;
8787
8888
const appClient = process.env.APP_TOKEN
89-
? require('@actions/github').getOctokit(process.env.APP_TOKEN)
89+
? new (github.constructor)({ auth: process.env.APP_TOKEN })
9090
: null;
9191
// Prefer the App identity; fall back to github-actions[bot] when the
9292
// App is absent or lacks the Pull-requests permission (403/404).

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
issues: write # comment + (un)label + close stale issues
2727
pull-requests: write # comment + (un)label + close stale PRs
2828
steps:
29-
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
29+
- uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10.4.0
3030
with:
3131
# ── issues ──────────────────────────────────────────────────────
3232
days-before-issue-stale: 60

0 commit comments

Comments
 (0)