Skip to content

ci: update GitHub Actions to Node.js 24 compatible versions#3357

Open
avikivity wants to merge 1 commit into
scylladb:masterfrom
avikivity:github-actions-update-workflows
Open

ci: update GitHub Actions to Node.js 24 compatible versions#3357
avikivity wants to merge 1 commit into
scylladb:masterfrom
avikivity:github-actions-update-workflows

Conversation

@avikivity

Copy link
Copy Markdown
Member

Node.js 20 actions are deprecated and will be forced to Node.js 24 starting June 2nd, 2026, with Node.js 20 removed from runners on September 16th, 2026. Update all actions to their latest major versions that support Node.js 24.

Actions updated across all workflow files:

  • actions/checkout: v4 -> v6
  • actions/setup-python: v5 -> v6
  • hendrikmuhs/ccache-action: v1 -> v1.2
  • docker/setup-buildx-action: v3 -> v4
  • docker/build-push-action: v6 -> v7
  • psf/black: 24.8.0 -> 26.3.1

Note: pre-commit/action@v3.0.1 internally uses actions/cache@v4 which still runs on Node.js 20. This is an upstream issue -- v3.0.1 is the latest release of pre-commit/action.

@avikivity avikivity added github_actions Pull requests that update GitHub Actions code ai-assisted labels Apr 14, 2026
@mykaul

mykaul commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

@avikivity - please see scylladb/scylladb#29421 - which is similar, but moving to hashes, instead of versions.

Node.js 20 actions are deprecated and will be forced to Node.js 24
starting June 2nd, 2026, with Node.js 20 removed from runners on
September 16th, 2026. Update all actions to their latest major
versions that support Node.js 24.

Actions updated across all workflow files:
- actions/checkout: v4 -> v6
- actions/setup-python: v5 -> v6
- hendrikmuhs/ccache-action: v1 -> v1.2
- docker/setup-buildx-action: v3 -> v4
- docker/build-push-action: v6 -> v7
- psf/black: 24.8.0 -> 26.3.1

Note: pre-commit/action@v3.0.1 internally uses actions/cache@v4 which
still runs on Node.js 20. This is an upstream issue -- v3.0.1 is the
latest release of pre-commit/action.
@avikivity avikivity force-pushed the github-actions-update-workflows branch from 5f96242 to c372bc2 Compare April 26, 2026 08:48
@avikivity

Copy link
Copy Markdown
Member Author

v2: rebased

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates GitHub Actions workflow dependencies to action versions expected to be compatible with the upcoming runner Node.js 24 migration, keeping CI functional past the Node.js 20 deprecation timeline.

Changes:

  • Bump actions/checkout across workflows.
  • Update Python-related actions (setup-python, black) to newer majors/versions.
  • Update Docker Buildx and build/push actions, plus ccache action.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/test.yaml Updates checkout action and ccache action versions used in the reusable CI test job.
.github/workflows/python-lint.yaml Updates checkout and black action versions used for Python formatting checks.
.github/workflows/pre-commit.yaml Updates checkout and setup-python action versions used for pre-commit checks.
.github/workflows/docker.yaml Updates checkout, buildx setup, and build-push action versions for Docker build verification.
.github/workflows/alpinelinux.yaml Updates checkout action version for Alpine container CI job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +13 to 16
version: "26.3.1"
src: ./scripts
# override options so that we can specify only specific files for now
options: "--check --diff --include=.*addr2line.*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants