Skip to content

Commit 8b9b421

Browse files
committed
Node 20 is deprecated on GitHub Actions runners. Move every actions/*
and docker/* step to the lowest major that defaults to node24: checkout v4 -> v5 setup-go v5 -> v6 upload-artifact v4 -> v6 (v5 still defaults to node20) download-artifact v4 -> v8 (v5/v6 still default to node20) stale v9 -> v10 docker/setup-buildx-action v3 -> v4 docker/setup-qemu-action v3 -> v4 docker/build-push-action v6 -> v7 docker/login-action v3 -> v4 docker/metadata-action v5 -> v6
1 parent 809bd25 commit 8b9b421

11 files changed

Lines changed: 34 additions & 34 deletions

.github/workflows/build-image.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Set up QEMU
17-
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3
17+
uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4
1818

1919
- name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
20+
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
2121

2222
- name: Build and export
23-
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
23+
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
2424
with:
2525
context: .
2626
tags: thor-pipeline:${{ github.sha }}
2727
outputs: type=docker,dest=/tmp/thor-pipeline.tar
2828

2929
- name: Upload artifact
30-
uses: actions/upload-artifact@v4
30+
uses: actions/upload-artifact@v6
3131
with:
3232
name: thor-pipeline-image-${{ github.sha }}
3333
path: /tmp/thor-pipeline.tar

.github/workflows/close-stale-issues.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
pull-requests: write
1717

1818
steps:
19-
- uses: actions/stale@v9
19+
- uses: actions/stale@v10
2020
with:
2121
stale-issue-message: 'This issue has been marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.'
2222
stale-pr-message: 'This pull request has been marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.'

.github/workflows/go-mod-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v5
16-
- uses: actions/setup-go@v5
16+
- uses: actions/setup-go@v6
1717
with:
1818
go-version: '1.26.x'
1919
cache: false

.github/workflows/lint-go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v5
16-
- uses: actions/setup-go@v5
16+
- uses: actions/setup-go@v6
1717
with:
1818
go-version: '1.26.x'
1919
cache: false

.github/workflows/permutation-testing.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
timeout-minutes: 240 # 4 hours
2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525

2626
- name: Install Go
27-
uses: actions/setup-go@v5
27+
uses: actions/setup-go@v6
2828
with:
2929
go-version: '1.26.x'
3030

.github/workflows/publish-docker-images.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,21 @@ jobs:
8181
# Set up Buildx for multi-arch builds
8282
# ----------------------------
8383
- name: Set up Docker Buildx
84-
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
84+
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
8585

8686
# ----------------------------
8787
# Log in to registries
8888
# ----------------------------
8989
- name: Log in to GHCR
90-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
90+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4
9191
with:
9292
registry: ghcr.io
9393
username: ${{ github.actor }}
9494
password: ${{ secrets.GITHUB_TOKEN }}
9595

9696
- name: Log in to Docker Hub
9797
if: ${{ inputs.environment == 'docker-publish' && github.event_name != 'pull_request' }}
98-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
98+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4
9999
with:
100100
username: ${{ secrets.DOCKERHUB_USERNAME }}
101101
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -105,7 +105,7 @@ jobs:
105105
# ----------------------------
106106
- name: Extract metadata (tags, labels)
107107
id: meta
108-
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5
108+
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
109109
with:
110110
images: ${{ inputs.images || format('ghcr.io/{0}', github.repository) }}
111111
tags: ${{ inputs.tags || format('type=raw,value={0}-{1}', github.ref_name, github.sha) }}
@@ -155,7 +155,7 @@ jobs:
155155
# ----------------------------
156156
- name: Build and (conditionally) push ${{ matrix.platform }}
157157
id: build
158-
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
158+
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
159159
with:
160160
context: .
161161
platforms: ${{ matrix.platform }}
@@ -189,7 +189,7 @@ jobs:
189189
# ----------------------------
190190
- name: Upload digest
191191
if: ${{ github.event_name != 'pull_request' }}
192-
uses: actions/upload-artifact@v4
192+
uses: actions/upload-artifact@v6
193193
with:
194194
name: digest-${{ matrix.arch }}
195195
path: ${{ steps.digest.outputs.file }}
@@ -213,25 +213,25 @@ jobs:
213213
uses: actions/checkout@v5
214214

215215
- name: Log in to GHCR
216-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
216+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4
217217
with:
218218
registry: ghcr.io
219219
username: ${{ github.actor }}
220220
password: ${{ secrets.GITHUB_TOKEN }}
221221

222222
- name: Log in to Docker Hub
223223
if: ${{ inputs.environment == 'docker-publish' }}
224-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
224+
uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4
225225
with:
226226
username: ${{ secrets.DOCKERHUB_USERNAME }}
227227
password: ${{ secrets.DOCKERHUB_TOKEN }}
228228

229229
- name: Set up Docker Buildx
230-
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
230+
uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
231231

232232
- name: Extract metadata (tags, labels)
233233
id: meta
234-
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5
234+
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
235235
with:
236236
images: ${{ inputs.images || format('ghcr.io/{0}', github.repository) }}
237237
tags: ${{ inputs.tags || format('type=raw,value={0}-{1}', github.ref_name, github.sha) }}
@@ -240,7 +240,7 @@ jobs:
240240
# Retrieve digest artifacts from each architecture
241241
# ----------------------------
242242
- name: Download digests
243-
uses: actions/download-artifact@v4
243+
uses: actions/download-artifact@v8
244244
with:
245245
pattern: digest-*
246246
path: ./digests
@@ -375,7 +375,7 @@ jobs:
375375
# Recompute metadata so scan can reference same tags
376376
- name: Extract metadata (tags)
377377
id: meta
378-
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5
378+
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
379379
with:
380380
images: ${{ inputs.images || format('ghcr.io/{0}', github.repository) }}
381381
tags: ${{ inputs.tags || format('type=raw,value={0}-{1}', github.ref_name, github.sha) }}

.github/workflows/release-binaries.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
fetch-depth: 0
5151

52-
- uses: actions/setup-go@v5
52+
- uses: actions/setup-go@v6
5353
with:
5454
go-version: '1.26.x'
5555

@@ -103,7 +103,7 @@ jobs:
103103
with:
104104
fetch-depth: 0
105105

106-
- uses: actions/setup-go@v5
106+
- uses: actions/setup-go@v6
107107
with:
108108
go-version: 1.26
109109

.github/workflows/test-e2e.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Download Docker image artifact
11-
uses: actions/download-artifact@v4
11+
uses: actions/download-artifact@v8
1212
with:
1313
name: thor-pipeline-image-${{ github.sha }}
1414
path: /tmp
1515
- name: Load image
1616
run: docker load --input /tmp/thor-pipeline.tar
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919
- name: Set e2e repo reference
2020
id: set-ref
2121
env:
@@ -60,7 +60,7 @@ jobs:
6060
yarn install
6161
yarn docker:up
6262
yarn test
63-
- uses: actions/upload-artifact@v4
63+
- uses: actions/upload-artifact@v6
6464
if: success() || failure()
6565
with:
6666
name: e2e-test-results-${{ github.sha }}
@@ -84,7 +84,7 @@ jobs:
8484
outputs:
8585
enabled: ${{ steps.check.outputs.enabled }}
8686
steps:
87-
- uses: actions/checkout@v4
87+
- uses: actions/checkout@v5
8888
with:
8989
sparse-checkout: thor/fork_config.go
9090
sparse-checkout-cone-mode: false

.github/workflows/test-rosetta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
path: thor-source
7878

7979
- name: Setup Go
80-
uses: actions/setup-go@v5
80+
uses: actions/setup-go@v6
8181
with:
8282
go-version-file: thor-source/go.mod
8383
cache-dependency-path: thor-source/go.sum

.github/workflows/test-smoke.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
THOR_IMAGE: thor-pipeline:${{ github.sha }}
1414
steps:
1515
- name: Download Docker image artifact
16-
uses: actions/download-artifact@v4
16+
uses: actions/download-artifact@v8
1717
with:
1818
name: thor-pipeline-image-${{ github.sha }}
1919
path: /tmp
@@ -59,7 +59,7 @@ jobs:
5959
token: ${{ secrets.DRAUPNIR_TOKEN }}
6060
ref: ${{ steps.set-ref.outputs.ref }}
6161
- name: Setup Go
62-
uses: actions/setup-go@v5
62+
uses: actions/setup-go@v6
6363
with:
6464
go-version: '1.26.x'
6565
- name: Start Thor Node

0 commit comments

Comments
 (0)