Skip to content

Commit 3809415

Browse files
rucoderrene
authored andcommitted
ci: update GitHub Actions to Node.js 24 compatible versions
GitHub is deprecating Node.js 20 actions. Starting June 2nd, 2026, actions will be forced to run with Node.js 24 by default, and Node.js 20 will be removed from runners on September 16th, 2026. Update all GitHub Actions in CI workflows to the latest versions that support Node.js 24 and pin them to commit SHAs for supply-chain security: - actions/checkout v5.0.0 -> v6.0.2 - actions/cache v4.3.0 -> v5.0.4 - actions/upload-artifact v5.0.0 -> v7.0.0 - actions/download-artifact v6.0.0 -> v8.0.1 - actions/setup-go v6.0.0 -> v6.3.0 - docker/login-action v3.6.0 -> v4.0.0 - docker/setup-buildx-action v3 (unpinned) -> v4.0.0 (pinned) - github/codeql-action v4.31.3 -> v4.35.1 - codecov/codecov-action v5.5.1 -> v6.0.0 - zizmorcore/zizmor-action v0.2.0 -> v0.5.2 - google/osv-scanner-action v1.9.2 -> v2.3.5 Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
1 parent 74a191c commit 3809415

19 files changed

+49
-49
lines changed

.github/actions/run-make/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
shell: bash
2828
- name: Login to Docker Hub
2929
if: ${{ github.event.repository.full_name == 'lf-edge/eve' }}
30-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
30+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
3131
with:
3232
username: ${{ inputs.dockerhub-account }}
3333
password: ${{ inputs.dockerhub-token }}

.github/workflows/ascii-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
with:
2222
ref: ${{ github.base_ref }}
2323
fetch-depth: 0
@@ -28,7 +28,7 @@ jobs:
2828
git checkout ${{ github.event.pull_request.head.ref }}
2929
3030
- name: Setup Go
31-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
31+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
3232
with:
3333
go-version: 1.24
3434

.github/workflows/assets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
hv: "kvm"
6565
steps:
6666
- name: checkout repo
67-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
67+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6868
with:
6969
ref: ${{ inputs.tag_ref }}
7070
fetch-depth: 0
@@ -87,8 +87,8 @@ jobs:
8787
run: |
8888
rm -rf assets && mkdir -p assets
8989
- name: Login to Docker Hub
90-
if: ${{ github.event.repository.full_name }} == 'lf-edge/eve'
91-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
90+
if: github.event.repository.full_name == 'lf-edge/eve'
91+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
9292
with:
9393
username: ${{ secrets.DOCKERHUB_PULL_USER }}
9494
password: ${{ secrets.DOCKERHUB_PULL_TOKEN }}

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
5555
rm -fr ~/.linuxkit
5656
docker system prune --all --force --volumes
57-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
57+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5858
with:
5959
repository: ${{ github.event.pull_request.head.repo.full_name }}
6060
ref: ${{ github.event.pull_request.head.ref }}
@@ -78,7 +78,7 @@ jobs:
7878
# If we rerun a job without changing the sha, we should not have to rebuild anything.
7979
# Since the cache is keyed on the head sha, it will retrieve it.
8080
- name: update linuxkit cache if available
81-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
81+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
8282
with:
8383
path: ~/.linuxkit/cache
8484
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.sha }}-${{ matrix.platform }}-${{ matrix.hv }}
@@ -124,7 +124,7 @@ jobs:
124124
runs-on: ${{ matrix.arch == 'arm64' && 'zededa-ubuntu-2204-arm64' || 'zededa-ubuntu-2204' }}
125125

126126
steps:
127-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
127+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
128128
with:
129129
repository: ${{ github.event.pull_request.head.repo.full_name }}
130130
ref: ${{ github.event.pull_request.head.ref }}
@@ -140,7 +140,7 @@ jobs:
140140
# So: restore amd64 cache -> load tools -> clear -> restore riscv64 cache.
141141
- name: load amd64 tool images for riscv64 cross-build
142142
if: ${{ matrix.arch == 'riscv64' }}
143-
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
143+
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
144144
with:
145145
path: ~/.linuxkit/cache
146146
key: linuxkit-amd64-${{ github.event.pull_request.head.sha }}-generic-default
@@ -154,7 +154,7 @@ jobs:
154154
# this cache also contains the tool images we need.
155155
# The 'rt' platform has no platform-specific packages, so it uses the generic cache.
156156
- name: update linuxkit cache for target arch
157-
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
157+
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
158158
with:
159159
path: ~/.linuxkit/cache
160160
key: linuxkit-${{ matrix.arch }}-${{ github.event.pull_request.head.sha }}-${{ matrix.platform == 'rt' && 'generic' || matrix.platform }}-${{ matrix.hv == 'k' && 'k' || 'default' }}
@@ -188,7 +188,7 @@ jobs:
188188
run: |
189189
make cache-export ZARCH=${{ matrix.arch }} IMAGE=lfedge/eve:$VERSION-${{ matrix.hv }} OUTFILE=eve-${{ matrix.hv }}-${{ matrix.arch }}-${{ matrix.platform }}.tar IMAGE_NAME=$TAG-${{ matrix.hv }}-${{ matrix.arch }}
190190
- name: Upload EVE ${{ matrix.hv }}-${{ matrix.arch }}-${{ matrix.platform }}
191-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
191+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
192192
with:
193193
name: eve-${{ matrix.hv }}-${{ matrix.arch }}-${{ matrix.platform }}
194194
path: eve-${{ matrix.hv }}-${{ matrix.arch }}-${{ matrix.platform }}.tar

.github/workflows/buildondemand.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
4949
rm -fr ~/.linuxkit
5050
docker system prune --all --force --volumes
51-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
51+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5252
with:
5353
fetch-depth: 0
5454
- name: ensure zstd for cache # this should be removed once the arm64 VM includes zstd
@@ -63,7 +63,7 @@ jobs:
6363
# if the default server is responding -- we can skip apt update
6464
$APT_INSTALL || { sudo apt update && $APT_INSTALL ; }
6565
- name: update linuxkit cache if available
66-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
66+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
6767
with:
6868
path: ~/.linuxkit/cache
6969
key: linuxkit-${{ matrix.arch }}-${{ github.sha }}
@@ -116,13 +116,13 @@ jobs:
116116
hv: k
117117
platform: "generic"
118118
steps:
119-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
119+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
120120
with:
121121
fetch-depth: 0
122122
- name: update linuxkit cache for our arch
123123
id: cache_for_packages
124124
if: ${{ matrix.arch != 'amd64' }} # because our runner arch is amd64; if that changes, this will have to change
125-
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
125+
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
126126
with:
127127
path: ~/.linuxkit/cache
128128
key: linuxkit-${{ matrix.arch }}-${{ github.sha }}
@@ -146,7 +146,7 @@ jobs:
146146
runs-on: ubuntu-latest
147147
needs: packages
148148
steps:
149-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
149+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
150150
with:
151151
fetch-depth: 0
152152
- uses: ./.github/actions/run-make

.github/workflows/buildyetusondemand.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ jobs:
4444
df -h
4545
echo Memory
4646
free -m
47-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
47+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4848
with:
4949
repository: ${{ github.event.pull_request.head.repo.full_name }}
5050
ref: ${{ github.event.pull_request.head.ref }}
5151
fetch-depth: 0
5252
persist-credentials: false
5353
- name: Set up Docker Buildx
54-
uses: docker/setup-buildx-action@v3
54+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
5555
- name: Login to Docker Hub
5656
if: ${{ env.REPO_NAME == 'lf-edge/eve' }}
57-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
57+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
5858
with:
5959
username: ${{ secrets.RELEASE_DOCKERHUB_ACCOUNT }}
6060
password: ${{ secrets.RELEASE_DOCKERHUB_TOKEN }}

.github/workflows/check-docker-hashes-consistency.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
runs-on: ubuntu-24.04
2828
steps:
2929
- name: Checkout repository
30-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
with:
3232
ref: ${{ github.event.pull_request.head.sha }}
3333

3434
- name: Cache Go modules
35-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
35+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
3636
with:
3737
path: |
3838
~/.cache/go-build

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ jobs:
4646

4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
49+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5050

5151
- name: Initialize CodeQL
52-
uses: github/codeql-action/init@014f16e7ab1402f30e7c3329d33797e7948572db # v4.31.3
52+
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
5353
with:
5454
languages: ${{ matrix.language }}
5555

5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@014f16e7ab1402f30e7c3329d33797e7948572db # v4.31.3
57+
uses: github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
5858

5959
# Command-line programs to run using the OS shell.
6060
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6161

6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@014f16e7ab1402f30e7c3329d33797e7948572db # v4.31.3
63+
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
6464
with:
6565
category: "/language:${{matrix.language}}"

.github/workflows/commit-messages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
with:
2121
ref: ${{ github.base_ref }}
2222
fetch-depth: 0

.github/workflows/eden-trusted.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
skip_run: ${{ steps.check_gate.outputs.skip_run }}
4040
steps:
4141
- name: Download
42-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
42+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4343
with:
4444
name: run-context
4545
run-id: ${{ github.event.workflow_run.id }}

0 commit comments

Comments
 (0)