ci: upgrade GitHub Actions off the deprecated Node.js 20 runtime#2886
Merged
Conversation
GitHub is deprecating the Node.js 20 Actions runtime, and actions targeting node12/16/20 now emit deprecation warnings. Bump every affected action across all workflows to its latest release (node24). Notably this migrates slackapi/slack-github-action v1 -> v3, which moved the webhook URL from the SLACK_WEBHOOK_URL env var to a `webhook` input and made `webhook-type` required. All other major bumps (checkout v7, upload-artifact v7, download-artifact v8, github-script v9, configure-aws-credentials v6, etc.) are input-compatible for this repo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s GitHub Actions workflows to newer major versions of common actions (many now targeting the node24 runtime) to avoid deprecation warnings from actions still built for older Node.js runtimes.
Changes:
- Bumped
actions/*core actions across workflows (e.g.,checkout,setup-go,setup-node,cache,upload-artifact,download-artifact,github-script). - Bumped Docker publishing actions to newer major versions (
docker/*actions). - Migrated Slack notification steps in
cli-release.ymltoslackapi/slack-github-action@v3usingwebhook+webhook-type.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/vscode-ext-release.yaml | Updates checkout/setup-node versions for VS Code extension release workflow. |
| .github/workflows/stale-issue-cleanup.yml | Updates actions/stale to v10 (node24 runtime). |
| .github/workflows/random-reviewer-assignment.yml | Updates actions/github-script to v9 (node24 runtime). |
| .github/workflows/docker-image-release.yml | Updates Docker build/publish actions to newer major versions (node24 runtime). |
| .github/workflows/debug.yaml | Updates checkout/setup-go versions for the debug workflow. |
| .github/workflows/cli-tests.yaml | Updates checkout, setup-go, artifact upload/download, and cache action versions. |
| .github/workflows/cli-release.yml | Updates multiple actions and migrates Slack action usage to v3 inputs. |
| .github/workflows/cli-post-release.yml | Updates configure-aws-credentials to v6 and comment alignment. |
| .github/workflows/cache-upload.yml | Updates checkout/setup-go versions for the cache upload workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+11
to
13
| - uses: actions/stale@v10 | ||
| with: | ||
| stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove the `stale` label or add a comment, otherwise this issue will be closed in 5 days.' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GitHub is deprecating the Node.js 20 Actions runtime, so every action targeting node12/16/20 now emits a deprecation warning; this bumps all of them across the 9 workflow files to their latest release (node24) —
checkoutv7,setup-gov6,setup-nodev6,cachev5,upload-artifactv7,download-artifactv8,github-scriptv9,stalev10,configure-aws-credentialsv6,goreleaser-actionv7,action-gh-releasev3, thedocker/*actions, andgithub-tag-actionv6.2. The only breaking change requiring code edits wasslackapi/slack-github-actionv1→v3, which moved the webhook URL from theSLACK_WEBHOOK_URLenv var to awebhookinput and madewebhook-type: incoming-webhookrequired (migrated both Slack steps incli-release.yml). All other major bumps were verified input-compatible for how this repo uses them. Composite actions (getsentry, typos, nix-installer) and already-node24 actions (action-tmate, wait-for-workflows) were left alone since they don't emit the warning, and the branch-pinneddevbox-install-actionwas left as-is. Note:mathieudutour/github-tag-action's latest release still targets node20 upstream, so it will keep warning until they ship a node24 build.How was it tested?
Validated all 9 workflow files parse as valid YAML and confirmed every target version's
action.ymldeclaresruns.using: node24by reading each at its pinned tag. No runtime behavior was changed beyond the action versions and the Slack input migration.Community Contribution License
All community contributions in this pull request are licensed to the project
maintainers under the terms of the
Apache 2 License.
By creating this pull request, I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 License as stated in
the
Community Contribution License.