Skip to content

Commit 7c9af7b

Browse files
committed
fix(ci): upgrade actions/github-script to v8 to support Node 24
1 parent 89178f5 commit 7c9af7b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci-nudge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
app-id: ${{ secrets.TESTSPRITE_HOB_APP_ID || secrets.ALFHEIM_AGENT_APP_ID }}
4242
private-key: ${{ secrets.TESTSPRITE_HOB_PRIVATE_KEY || secrets.ALFHEIM_AGENT_PRIVATE_KEY }}
4343

44-
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.0.1
44+
- uses: actions/github-script@v8
4545
env:
4646
APP_TOKEN: ${{ steps.app-token.outputs.token }}
4747
with:
@@ -51,7 +51,7 @@ jobs:
5151
const marker = process.env.MARKER;
5252
5353
const appClient = process.env.APP_TOKEN
54-
? require('@actions/github').getOctokit(process.env.APP_TOKEN)
54+
? getOctokit(process.env.APP_TOKEN)
5555
: null;
5656
async function write(fn) {
5757
if (appClient) {

.github/workflows/issue-triage.yml

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

52-
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.0.1
52+
- uses: actions/github-script@v8
5353
with:
5454
# App token when available (→ testsprite-hob[bot]); else the default
5555
# 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
@@ -61,7 +61,7 @@ jobs:
6161
app-id: ${{ secrets.TESTSPRITE_HOB_APP_ID || secrets.ALFHEIM_AGENT_APP_ID }}
6262
private-key: ${{ secrets.TESTSPRITE_HOB_PRIVATE_KEY || secrets.ALFHEIM_AGENT_PRIVATE_KEY }}
6363

64-
- uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.0.1
64+
- uses: actions/github-script@v8
6565
env:
6666
APP_TOKEN: ${{ steps.app-token.outputs.token }}
6767
with:
@@ -76,7 +76,7 @@ jobs:
7676
const author = pr.user.login;
7777
7878
const appClient = process.env.APP_TOKEN
79-
? require('@actions/github').getOctokit(process.env.APP_TOKEN)
79+
? getOctokit(process.env.APP_TOKEN)
8080
: null;
8181
// Prefer the App identity; fall back to github-actions[bot] when the
8282
// App is absent or lacks the Pull-requests permission (403/404).

0 commit comments

Comments
 (0)