Skip to content

Commit 9fdb40f

Browse files
Sayan-cursoragent
andauthored
ci: bump actions to Node 24 runtime versions (#185)
## Summary GitHub forces JS actions onto Node 24 on 2026-06-16 (Node 20 removed 2026-09-16). Bump the pinned actions across the three workflows that use them to their Node 24 majors: | Action | Before | After | |---|---|---| | `actions/checkout` | v4 | v6 | | `actions/setup-go` | v5 | v6 | | `actions/setup-node` | v4 | v6 | | `actions/create-github-app-token` | v1 | v3 | | `goreleaser/goreleaser-action` | v6 | v7 | `create-github-app-token` inputs (`app-id`/`private-key`/`repositories`) and `goreleaser-action` inputs are unchanged across these majors (goreleaser-action v7 is a runtime-only bump). GitHub-hosted runners already meet the v2.327.1 minimum. ## Validation - `test.yaml` runs on `pull_request`, so the `checkout` + `setup-go` bumps are exercised by this PR's check run. - `release.yaml` only runs on a `v*` tag, so its bumps (`goreleaser-action`, `setup-node`, release-path `create-github-app-token`/`checkout`) are **not** exercised here — they'll be confirmed on the next release. - `fix-ci.yaml` is a `workflow_run` workflow (runs from the default branch), so its bumps take effect after merge. Made with [Cursor](https://cursor.com) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Workflow-only version pin updates with no application or secret-handling logic changes; release and fix-ci bumps are not fully exercised until tag push and merge. > > **Overview** > Bumps pinned GitHub Actions in **fix-ci**, **release**, and **test** workflows to majors that run on **Node 24**, ahead of GitHub’s deprecation of Node 20 for JS actions. > > **test.yaml** and **fix-ci.yaml** move `actions/checkout` to **v6** and `actions/setup-go` to **v6**; **fix-ci** and **release** also bump `actions/create-github-app-token` to **v3**. **release.yaml** additionally upgrades `actions/setup-node` to **v6** and `goreleaser/goreleaser-action` to **v7**. Step inputs (`app-id`, `private-key`, `go-version-file`, GoReleaser args, etc.) are unchanged. > > This PR’s CI run exercises the **test** workflow bumps; **release** and post-merge **fix-ci** paths are validated on tag push and default-branch workflow runs respectively. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c8e4874. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 905b022 commit 9fdb40f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/fix-ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
steps:
2121
- name: Generate app token
2222
id: app-token
23-
uses: actions/create-github-app-token@v1
23+
uses: actions/create-github-app-token@v3
2424
with:
2525
app-id: ${{ secrets.ADMIN_APP_ID }}
2626
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
2727

2828
- name: Checkout repository
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3030
with:
3131
token: ${{ steps.app-token.outputs.token }}
3232
fetch-depth: 0
@@ -49,7 +49,7 @@ jobs:
4949
git config user.email "260533166+kernel-internal[bot]@users.noreply.github.com"
5050
5151
- name: Setup Go
52-
uses: actions/setup-go@v5
52+
uses: actions/setup-go@v6
5353
with:
5454
go-version-file: 'go.mod'
5555

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ jobs:
1515
steps:
1616
- name: Generate app token
1717
id: app-token
18-
uses: actions/create-github-app-token@v1
18+
uses: actions/create-github-app-token@v3
1919
with:
2020
app-id: ${{ secrets.ADMIN_APP_ID }}
2121
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
2222
repositories: cli,homebrew-tap
2323

2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
with:
2727
fetch-depth: 0
2828

2929
- name: Set up Go
30-
uses: actions/setup-go@v5
30+
uses: actions/setup-go@v6
3131
with:
3232
go-version-file: "go.mod"
3333
cache: true
3434

3535
- name: Set up Node.js
36-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@v6
3737
with:
3838
node-version: '20'
3939
registry-url: 'https://registry.npmjs.org'
@@ -45,7 +45,7 @@ jobs:
4545
run: make clean-templates
4646

4747
- name: Run GoReleaser
48-
uses: goreleaser/goreleaser-action@v6
48+
uses: goreleaser/goreleaser-action@v7
4949
with:
5050
distribution: goreleaser-pro
5151
version: '~> v2'

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1919

2020
- name: Set up Go
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@v6
2222
with:
2323
go-version-file: "go.mod"
2424
cache: true

0 commit comments

Comments
 (0)