@@ -30,12 +30,12 @@ jobs:
30
30
pre-version : ${{ steps.set-product-version.outputs.prerelease-product-version }}
31
31
shared-ldflags : ${{ steps.shared-ldflags.outputs.shared-ldflags }}
32
32
steps :
33
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
33
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
34
34
# action-set-product-version implicitly sets fields like 'product-version' using version/VERSION
35
35
# https://github.com/hashicorp/actions-set-product-version
36
36
- name : set product version
37
37
id : set-product-version
38
- uses : hashicorp/actions-set-product-version@v1
38
+ uses : hashicorp/actions-set-product-version@v2
39
39
- name : get product version
40
40
id : get-product-version
41
41
run : |
@@ -70,15 +70,15 @@ jobs:
70
70
filepath : ${{ steps.generate-metadata-file.outputs.filepath }}
71
71
steps :
72
72
- name : ' Checkout directory'
73
- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
73
+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
74
74
- name : Generate metadata file
75
75
id : generate-metadata-file
76
76
uses : hashicorp/actions-generate-metadata@v1
77
77
with :
78
78
version : ${{ needs.set-product-version.outputs.product-version }}
79
79
product : ${{ env.PKG_NAME }}
80
80
81
- - uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
81
+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
82
82
with :
83
83
name : metadata.json
84
84
path : ${{ steps.generate-metadata-file.outputs.filepath }}
@@ -104,10 +104,10 @@ jobs:
104
104
105
105
name : Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build
106
106
steps :
107
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
107
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
108
108
109
109
- name : Setup with node and yarn
110
- uses : actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
110
+ uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
111
111
with :
112
112
node-version : ' 18'
113
113
cache : ' yarn'
@@ -132,7 +132,7 @@ jobs:
132
132
PRERELEASE_VERSION : ${{ needs.set-product-version.outputs.pre-version }}
133
133
CGO_ENABLED : " 0"
134
134
GOLDFLAGS : " ${{needs.set-product-version.outputs.shared-ldflags}}"
135
- uses : hashicorp/actions-go-build@v0.1.7
135
+ uses : hashicorp/actions-go-build@v1
136
136
with :
137
137
product_name : ${{ env.PKG_NAME }}
138
138
product_version : ${{ needs.set-product-version.outputs.product-version }}
@@ -178,13 +178,13 @@ jobs:
178
178
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> $GITHUB_ENV
179
179
echo "DEB_PACKAGE=$(basename out/*.deb)" >> $GITHUB_ENV
180
180
181
- - uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
181
+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
182
182
if : ${{ matrix.goos == 'linux' }}
183
183
with :
184
184
name : ${{ env.RPM_PACKAGE }}
185
185
path : out/${{ env.RPM_PACKAGE }}
186
186
187
- - uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
187
+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
188
188
if : ${{ matrix.goos == 'linux' }}
189
189
with :
190
190
name : ${{ env.DEB_PACKAGE }}
@@ -204,10 +204,10 @@ jobs:
204
204
205
205
name : Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build
206
206
steps :
207
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
207
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
208
208
209
209
- name : Setup with node and yarn
210
- uses : actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
210
+ uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
211
211
with :
212
212
node-version : ' 18'
213
213
cache : ' yarn'
@@ -232,7 +232,7 @@ jobs:
232
232
PRERELEASE_VERSION : ${{ needs.set-product-version.outputs.pre-version }}
233
233
CGO_ENABLED : " 0"
234
234
GOLDFLAGS : " ${{needs.set-product-version.outputs.shared-ldflags}}"
235
- uses : hashicorp/actions-go-build@v0.1.7
235
+ uses : hashicorp/actions-go-build@v1
236
236
with :
237
237
product_name : ${{ env.PKG_NAME }}
238
238
product_version : ${{ needs.set-product-version.outputs.product-version }}
@@ -257,10 +257,10 @@ jobs:
257
257
258
258
name : Go ${{ needs.get-go-version.outputs.go-version }} ${{ matrix.goos }} ${{ matrix.goarch }} build
259
259
steps :
260
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
260
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
261
261
262
262
- name : Setup with node and yarn
263
- uses : actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
263
+ uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
264
264
with :
265
265
node-version : ' 18'
266
266
cache : ' yarn'
@@ -283,7 +283,7 @@ jobs:
283
283
PRERELEASE_VERSION : ${{ needs.set-product-version.outputs.pre-version }}
284
284
CGO_ENABLED : " 0"
285
285
GOLDFLAGS : " ${{needs.set-product-version.outputs.shared-ldflags}}"
286
- uses : hashicorp/actions-go-build@v0.1.7
286
+ uses : hashicorp/actions-go-build@v1
287
287
with :
288
288
product_name : ${{ env.PKG_NAME }}
289
289
product_version : ${{ needs.set-product-version.outputs.product-version }}
@@ -313,7 +313,7 @@ jobs:
313
313
version : ${{needs.set-product-version.outputs.product-version}}
314
314
315
315
steps :
316
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
316
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
317
317
318
318
# Strip everything but MAJOR.MINOR from the version string and add a `-dev` suffix
319
319
# This naming convention will be used ONLY for per-commit dev images
@@ -325,7 +325,7 @@ jobs:
325
325
echo "minor_dev_tag=$(echo ${{ env.version }}| sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+(-[0-9a-zA-Z\+\.]+)?$/\1\2/')" >> $GITHUB_ENV
326
326
327
327
- name : Docker Build (Action)
328
- uses : hashicorp/actions-docker-build@v1
328
+ uses : hashicorp/actions-docker-build@v2
329
329
with :
330
330
version : ${{env.version}}
331
331
target : default
@@ -351,7 +351,7 @@ jobs:
351
351
version : ${{needs.set-product-version.outputs.product-version}}
352
352
353
353
steps :
354
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
354
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
355
355
356
356
# Strip everything but MAJOR.MINOR from the version string and add a `-dev` suffix
357
357
# This naming convention will be used ONLY for per-commit dev images
@@ -362,7 +362,7 @@ jobs:
362
362
echo "minor_dev_tag=$(echo ${{ env.version }}| sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+(-[0-9a-zA-Z\+\.]+)?$/\1\2/')"
363
363
echo "minor_dev_tag=$(echo ${{ env.version }}| sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+(-[0-9a-zA-Z\+\.]+)?$/\1\2/')" >> $GITHUB_ENV
364
364
365
- - uses : hashicorp/actions-docker-build@v1
365
+ - uses : hashicorp/actions-docker-build@v2
366
366
with :
367
367
version : ${{env.version}}
368
368
target : ubi
@@ -397,17 +397,17 @@ jobs:
397
397
398
398
name : Verify ${{ matrix.arch }} linux binary
399
399
steps :
400
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
400
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
401
401
if : ${{ endsWith(github.repository, '-enterprise') || matrix.arch != 's390x' }}
402
402
403
403
- name : Download ${{ matrix.arch }} zip
404
404
if : ${{ endsWith(github.repository, '-enterprise') || matrix.arch != 's390x' }}
405
- uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
405
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
406
406
with :
407
407
name : ${{ env.zip_name }}
408
408
409
409
- name : Set up QEMU
410
- uses : docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2 .0
410
+ uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0 .0
411
411
if : ${{ matrix.arch == 'arm' || matrix.arch == 'arm64' }}
412
412
with :
413
413
# this should be a comma-separated string as opposed to an array
@@ -430,10 +430,10 @@ jobs:
430
430
431
431
name : Verify amd64 darwin binary
432
432
steps :
433
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
433
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
434
434
435
435
- name : Download amd64 darwin zip
436
- uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
436
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
437
437
with :
438
438
name : ${{ env.zip_name }}
439
439
@@ -461,7 +461,7 @@ jobs:
461
461
462
462
name : Verify ${{ matrix.arch }} debian package
463
463
steps :
464
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
464
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
465
465
466
466
- name : Set package version
467
467
run : |
@@ -472,12 +472,12 @@ jobs:
472
472
echo "pkg_name=consul_${{ env.pkg_version }}-1_${{ matrix.arch }}.deb" >> $GITHUB_ENV
473
473
474
474
- name : Download workflow artifacts
475
- uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
475
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
476
476
with :
477
477
name : ${{ env.pkg_name }}
478
478
479
479
- name : Set up QEMU
480
- uses : docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2 .0
480
+ uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0 .0
481
481
with :
482
482
platforms : all
483
483
@@ -502,7 +502,7 @@ jobs:
502
502
503
503
name : Verify ${{ matrix.arch }} rpm
504
504
steps :
505
- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
505
+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
506
506
507
507
- name : Set package version
508
508
run : |
@@ -513,12 +513,12 @@ jobs:
513
513
echo "pkg_name=consul-${{ env.pkg_version }}-1.${{ matrix.arch }}.rpm" >> $GITHUB_ENV
514
514
515
515
- name : Download workflow artifacts
516
- uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
516
+ uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
517
517
with :
518
518
name : ${{ env.pkg_name }}
519
519
520
520
- name : Set up QEMU
521
- uses : docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2 .0
521
+ uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0 .0
522
522
with :
523
523
platforms : all
524
524
0 commit comments