38
38
sign_windows_artifacts : ${{ steps.determine_windows_signing.outputs.sign_windows_artifacts }}
39
39
steps :
40
40
- name : Checkout code
41
- uses : actions/checkout@v5
41
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
42
42
with :
43
43
fetch-depth : 0
44
44
persist-credentials : false
@@ -103,12 +103,12 @@ jobs:
103
103
VERSION : ${{ needs.configure.outputs.k6_version }}
104
104
steps :
105
105
- name : Checkout code
106
- uses : actions/checkout@v5
106
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
107
107
with :
108
108
fetch-depth : 0
109
109
persist-credentials : false
110
110
- name : Install Go
111
- uses : actions/setup-go@v5
111
+ uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
112
112
with :
113
113
go-version : ${{ needs.configure.outputs.go_version }}
114
114
check-latest : true
@@ -152,7 +152,7 @@ jobs:
152
152
go version
153
153
./build-release.sh "dist" "${VERSION}"
154
154
- name : Upload artifacts
155
- uses : actions/upload-artifact@v4
155
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
156
156
with :
157
157
name : binaries
158
158
path : dist/
@@ -169,7 +169,7 @@ jobs:
169
169
VERSION : ${{ needs.configure.outputs.k6_version }}
170
170
steps :
171
171
- name : Checkout code
172
- uses : actions/checkout@v5
172
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
173
173
with :
174
174
fetch-depth : 0
175
175
persist-credentials : false
@@ -273,7 +273,7 @@ jobs:
273
273
windows_binary_artifact_name : ${{ steps.assign-artifact-names.outputs.windows-binary-artifact-name }}
274
274
steps :
275
275
- name : Download binaries
276
- uses : actions/download-artifact@v4
276
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
277
277
with :
278
278
name : binaries
279
279
path : dist
@@ -283,15 +283,15 @@ jobs:
283
283
Expand-Archive -Path ".\dist\k6-${env:VERSION}-windows-amd64.zip" -DestinationPath .\packaging\
284
284
285
285
- name : Upload artifact for Windows installer build
286
- uses : actions/upload-artifact@v4
286
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
287
287
with :
288
288
name : windows-binary
289
289
path : ' packaging/k6-${{ env.VERSION }}-windows-amd64/k6.exe'
290
290
retention-days : 7
291
291
if-no-files-found : error
292
292
293
293
- name : Get secrets for Azure Trusted Signing
294
- uses : grafana/shared-workflows/actions/get-vault-secrets@get-vault-secrets/v1.3.0
294
+ uses : grafana/shared-workflows/actions/get-vault-secrets@a37de51f3d713a30a9e4b21bcdfbd38170020593 # get-vault-secrets/v1.3.0
295
295
id : get-signing-secrets
296
296
if : needs.configure.outputs.sign_windows_artifacts == 'true'
297
297
with :
@@ -302,7 +302,7 @@ jobs:
302
302
tenant-id=azure-trusted-signing:tenant-id
303
303
304
304
- name : Sign Windows binary
305
- uses : grafana/shared-workflows/actions/azure-trusted-signing@azure-trusted-signing/v1.0.0
305
+ uses : grafana/shared-workflows/actions/azure-trusted-signing@e86cdb1c0a8cf5df57d3078f285261f7c9577174 # azure-trusted-signing/v1.0.0
306
306
id : sign-artifacts
307
307
if : needs.configure.outputs.sign_windows_artifacts == 'true'
308
308
with :
@@ -314,7 +314,7 @@ jobs:
314
314
signed-artifact-name : ' windows-binary-signed'
315
315
316
316
- name : Download signed Windows binary
317
- uses : actions/download-artifact@v4
317
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
318
318
if : needs.configure.outputs.sign_windows_artifacts == 'true'
319
319
with :
320
320
name : ${{ steps.sign-artifacts.outputs.artifact-name }}
@@ -327,7 +327,7 @@ jobs:
327
327
Compress-Archive -Path ".\packaging\*" -DestinationPath ".\dist\k6-${env:VERSION}-windows-amd64.zip" -Force
328
328
329
329
- name : Upload signed artifacts
330
- uses : actions/upload-artifact@v4
330
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
331
331
if : needs.configure.outputs.sign_windows_artifacts == 'true'
332
332
with :
333
333
name : binaries-signed
@@ -358,7 +358,7 @@ jobs:
358
358
VERSION : ${{ needs.configure.outputs.k6_version }}
359
359
steps :
360
360
- name : Checkout code
361
- uses : actions/checkout@v5
361
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
362
362
with :
363
363
persist-credentials : false
364
364
- name : Install pandoc
@@ -371,7 +371,7 @@ jobs:
371
371
Expand-Archive -Path .\wix311-binaries.zip -DestinationPath .\wix311\
372
372
echo "$pwd\wix311" | Out-File -FilePath $env:GITHUB_PATH -Append
373
373
- name : Download Windows binary
374
- uses : actions/download-artifact@v5
374
+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
375
375
with :
376
376
name : ${{ needs.sign-binaries.outputs.windows_binary_artifact_name }}
377
377
path : packaging
@@ -389,7 +389,7 @@ jobs:
389
389
run : move "packaging\k6.msi" "packaging\k6-${env:VERSION}-windows-amd64.msi"
390
390
391
391
- name : Upload Windows installer
392
- uses : actions/upload-artifact@v4
392
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
393
393
with :
394
394
name : binaries-windows
395
395
path : |
@@ -418,14 +418,14 @@ jobs:
418
418
needs : [configure, package]
419
419
steps :
420
420
- name : Download Windows artifacts
421
- uses : actions/download-artifact@v4
421
+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
422
422
if : needs.configure.outputs.sign_windows_artifacts == 'true'
423
423
with :
424
424
name : binaries-windows
425
425
path : packaging
426
426
427
427
- name : Get secrets for Azure Trusted Signing
428
- uses : grafana/shared-workflows/actions/get-vault-secrets@get-vault-secrets/v1.3.0
428
+ uses : grafana/shared-workflows/actions/get-vault-secrets@a37de51f3d713a30a9e4b21bcdfbd38170020593 # get-vault-secrets/v1.3.0
429
429
id : get-signing-secrets
430
430
if : needs.configure.outputs.sign_windows_artifacts == 'true'
431
431
with :
@@ -436,7 +436,7 @@ jobs:
436
436
tenant-id=azure-trusted-signing:tenant-id
437
437
438
438
- name : Sign Windows installer
439
- uses : grafana/shared-workflows/actions/azure-trusted-signing@azure-trusted-signing/v1.0.0
439
+ uses : grafana/shared-workflows/actions/azure-trusted-signing@e86cdb1c0a8cf5df57d3078f285261f7c9577174 # azure-trusted-signing/v1.0.0
440
440
id : sign-artifacts
441
441
if : needs.configure.outputs.sign_windows_artifacts == 'true'
442
442
with :
@@ -465,16 +465,16 @@ jobs:
465
465
contents : write
466
466
steps :
467
467
- name : Checkout code
468
- uses : actions/checkout@v5
468
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
469
469
with :
470
470
persist-credentials : false
471
471
- name : Download binaries
472
- uses : actions/download-artifact@v5
472
+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
473
473
with :
474
474
name : ${{ needs.sign-binaries.outputs.binary_artifact_name }}
475
475
path : dist
476
476
- name : Download Windows binaries
477
- uses : actions/download-artifact@v5
477
+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
478
478
with :
479
479
name : ${{ needs.sign-packages.outputs.artifact_name }}
480
480
path : dist
@@ -511,16 +511,16 @@ jobs:
511
511
id-token : write # Required for Vault
512
512
steps :
513
513
- name : Checkout code
514
- uses : actions/checkout@v5
514
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
515
515
with :
516
516
persist-credentials : false
517
517
- name : Download binaries
518
- uses : actions/download-artifact@v5
518
+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
519
519
with :
520
520
name : ${{ needs.sign-binaries.outputs.binary_artifact_name }}
521
521
path : dist
522
522
- name : Download Windows binaries
523
- uses : actions/download-artifact@v5
523
+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
524
524
with :
525
525
name : ${{ needs.sign-packages.outputs.artifact_name }}
526
526
path : dist
@@ -530,15 +530,15 @@ jobs:
530
530
mv "dist/k6-$VERSION-windows-amd64.msi" "dist/k6-$VERSION-amd64.msi"
531
531
mv "dist/k6-$VERSION-linux-amd64.rpm" "dist/k6-$VERSION-amd64.rpm"
532
532
mv "dist/k6-$VERSION-linux-amd64.deb" "dist/k6-$VERSION-amd64.deb"
533
- - uses : grafana/shared-workflows/actions/get-vault-secrets@get-vault-secrets/v1.3.0
533
+ - uses : grafana/shared-workflows/actions/get-vault-secrets@a37de51f3d713a30a9e4b21bcdfbd38170020593 # get-vault-secrets/v1.3.0
534
534
with :
535
535
repo_secrets : |
536
536
IAM_ROLE_ARN=deploy:packager-iam-role
537
537
AWS_CF_DISTRIBUTION=cloudfront:AWS_CF_DISTRIBUTION
538
538
PGP_SIGN_KEY_PASSPHRASE=pgp:PGP_SIGN_KEY_PASSPHRASE
539
539
PGP_SIGN_KEY=pgp:PGP_SIGN_KEY
540
540
S3_BUCKET=s3:AWS_S3_BUCKET
541
- - uses : grafana/shared-workflows/actions/aws-auth@aws-auth/v1.0.2
541
+ - uses : grafana/shared-workflows/actions/aws-auth@954bcbdf6e64fe612210885b47df771d9d20447b # aws-auth/v1.0.2
542
542
with :
543
543
aws-region : " us-east-2"
544
544
role-arn : ${{ env.IAM_ROLE_ARN }}
0 commit comments