Skip to content

Commit 1997ce3

Browse files
authored
[CHORE] Upgrade GitHub Actions to Node.js 24 compatible versions (#1883)
* [CHORE] Upgrade GitHub Actions to Node.js 24 compatible versions Node.js 20 actions are deprecated and will be forced to Node.js 24 by June 2, 2026. Update all affected actions to their latest major versions that support Node.js 24. * [FIX] Use astral-sh/setup-uv@v7 since v8 major tag not yet available * [FIX] Add --system flag to uv pip install for setup-uv v7 compatibility * [FIX] Use uv tool install for tox instead of uv pip install setup-uv v7 installs a uv-managed Python that isn't recognized as a system Python. Use uv tool install which manages its own environment. * [FIX] Pin sticky-pull-request-comment to SHA for supply-chain security * [CHORE] Upgrade Docker and artifact actions to Node.js 24 versions - docker/login-action v3 → v4 - docker/setup-qemu-action v3 → v4 - docker/setup-buildx-action v3 → v4 - docker/build-push-action v5 → v7 - docker/bake-action v5 → v7 - actions/upload-artifact v4 → v7 - actions/download-artifact v4 → v8 No deprecated features were in use; upgrades are drop-in compatible.
1 parent 1c74b3d commit 1997ce3

6 files changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/ci-container-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020
- name: Login to Docker Hub
2121
if: github.event.pull_request == null || github.event.pull_request.head.repo.fork == false
22-
uses: docker/login-action@v3
22+
uses: docker/login-action@v4
2323
with:
2424
username: ${{ secrets.DOCKERHUB_USERNAME }}
2525
password: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/ci-frontend-lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323

2424
- name: Setup Biome
2525
uses: biomejs/setup-biome@v2
@@ -54,7 +54,7 @@ jobs:
5454
fi
5555
5656
- name: Render lint report to PR
57-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
57+
uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 # v3.0.2
5858
if: always() && hashFiles('frontend/biome-report.md') != '' && github.event.pull_request.head.repo.fork == false
5959
with:
6060
header: frontend-lint-results

.github/workflows/ci-test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ jobs:
2323

2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2727

2828
- name: Install uv
29-
uses: astral-sh/setup-uv@v5
29+
uses: astral-sh/setup-uv@v7
3030
with:
3131
# Install a specific version of uv.
3232
version: "0.6.14"
3333
python-version: 3.12.9
3434

3535
- name: Cache tox environments
36-
uses: actions/cache@v4
36+
uses: actions/cache@v5
3737
with:
3838
path: .tox/
3939
key: ${{ runner.os }}-tox-uv-${{ hashFiles('**/pyproject.toml', '**/tox.ini') }}
4040
restore-keys: |
4141
${{ runner.os }}-tox-uv-
4242
4343
- name: Install tox with UV
44-
run: uv pip install tox tox-uv
44+
run: uv tool install tox --with tox-uv
4545

4646
- name: Run tox
4747
id: tox
@@ -54,7 +54,7 @@ jobs:
5454
bash .github/scripts/combine-test-reports.sh
5555
5656
- name: Render combined test report to PR
57-
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
57+
uses: marocchino/sticky-pull-request-comment@70d2764d1a7d5d9560b100cbea0077fc8f633987 # v3.0.2
5858
if: always() && hashFiles('combined-test-report.md') != '' && github.event.pull_request.head.repo.fork == false
5959
with:
6060
header: test-results

.github/workflows/docker-tools-build-push.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ jobs:
3333
run: echo "${{ toJSON(github.event.inputs) }}"
3434

3535
- name: Checkout code
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737

3838
# Set up QEMU for ARM64 emulation
3939
- name: Set up QEMU
40-
uses: docker/setup-qemu-action@v3
40+
uses: docker/setup-qemu-action@v4
4141
with:
4242
platforms: linux/amd64,linux/arm64/v8
4343

4444
# Set up Docker Buildx for better caching and multi-arch builds
4545
- name: Set up Docker Buildx
46-
uses: docker/setup-buildx-action@v3
46+
uses: docker/setup-buildx-action@v4
4747
with:
4848
platforms: linux/amd64,linux/arm64/v8
4949

5050
# Log in to Docker Hub
5151
- name: Login to Docker Hub
52-
uses: docker/login-action@v3
52+
uses: docker/login-action@v4
5353
with:
5454
username: ${{ secrets.DOCKERHUB_USERNAME }}
5555
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -90,7 +90,7 @@ jobs:
9090
9191
# Build and push Docker image
9292
- name: Build and push ${{ github.event.inputs.service_name }}
93-
uses: docker/build-push-action@v5
93+
uses: docker/build-push-action@v7
9494
with:
9595
context: ${{ steps.build-config.outputs.context }}
9696
file: ${{ steps.build-config.outputs.dockerfile }}

.github/workflows/production-build.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,29 @@ jobs:
3737
steps:
3838
- name: Checkout code for release
3939
if: github.event_name == 'release'
40-
uses: actions/checkout@v4
40+
uses: actions/checkout@v6
4141
with:
4242
ref: ${{ github.event.release.tag_name }}
4343

4444
- name: Checkout code for branch
4545
if: github.event_name != 'release'
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v6
4747

4848
# Set up QEMU for ARM64 emulation
4949
- name: Set up QEMU
50-
uses: docker/setup-qemu-action@v3
50+
uses: docker/setup-qemu-action@v4
5151
with:
5252
platforms: linux/amd64,linux/arm64/v8
5353

5454
# Set up Docker Buildx for better caching and multi-arch builds
5555
- name: Set up Docker Buildx
56-
uses: docker/setup-buildx-action@v3
56+
uses: docker/setup-buildx-action@v4
5757
with:
5858
platforms: linux/amd64,linux/arm64/v8
5959

6060
# Log in to Docker Hub
6161
- name: Login to Docker Hub
62-
uses: docker/login-action@v3
62+
uses: docker/login-action@v4
6363
with:
6464
username: ${{ secrets.DOCKERHUB_USERNAME }}
6565
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -91,7 +91,7 @@ jobs:
9191
9292
# Build and push using Docker Bake
9393
- name: Build and push image
94-
uses: docker/bake-action@v5
94+
uses: docker/bake-action@v7
9595
env:
9696
VERSION: ${{ env.DOCKER_VERSION_TAG }}
9797
with:
@@ -123,7 +123,7 @@ jobs:
123123
# Upload status for summary job
124124
- name: Upload build status
125125
if: always()
126-
uses: actions/upload-artifact@v4
126+
uses: actions/upload-artifact@v7
127127
with:
128128
name: build-status-${{ matrix.service_name }}
129129
path: build-status/${{ matrix.service_name }}.json
@@ -137,7 +137,7 @@ jobs:
137137
steps:
138138
# Download all build status artifacts
139139
- name: Download build statuses
140-
uses: actions/download-artifact@v4
140+
uses: actions/download-artifact@v8
141141
with:
142142
pattern: build-status-*
143143
merge-multiple: true

.github/workflows/uv-lock-automation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929
with:
3030
ref: ${{ github.head_ref }}
3131

3232
- name: Install uv
33-
uses: astral-sh/setup-uv@v5
33+
uses: astral-sh/setup-uv@v7
3434
with:
3535
# Install a specific version of uv.
3636
version: "0.6.14"

0 commit comments

Comments
 (0)