20
20
RELEASE_ID : ${{ steps.create-release.outputs.result }}
21
21
steps :
22
22
- run : " echo \" RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
23
- - uses : actions/github-script@v7
23
+ - uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 https://github.com/actions/github-script/releases/tag/v7.0.1
24
24
id : create-release
25
25
if : startsWith(github.ref, 'refs/tags/')
26
26
with :
@@ -88,10 +88,10 @@ jobs:
88
88
- name : Set RELEASE_TAG
89
89
if : matrix.os != 'windows'
90
90
run : " echo \" RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
91
- - uses : actions/checkout@v4
91
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 https://github.com/actions/checkout/releases/tag/v4.2.2
92
92
with :
93
93
fetch-depth : ' 0'
94
- - uses : actions/setup-go@v5
94
+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 https://github.com/actions/setup-go/releases/tag/v5.4.0
95
95
with :
96
96
go-version : 1.23.x
97
97
- name : Build binary (Windows)
@@ -107,20 +107,20 @@ jobs:
107
107
108
108
# Sign Windows build
109
109
- name : Set up Java
110
- uses : actions/setup-java@v4
110
+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 https://github.com/actions/setup-java/releases/tag/v4.7.1
111
111
if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows' }}
112
112
with :
113
113
java-version : 17
114
114
distribution : ' temurin'
115
115
- id : ' auth'
116
116
name : Authenticate with Google Cloud
117
117
if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows' }}
118
- uses : ' google-github-actions/auth@v2 '
118
+ uses : google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10 https://github.com/google-github-actions/auth/releases/tag/v2.1.10
119
119
with :
120
120
credentials_json : ' ${{ secrets.CERTIFICATE_SA_CREDENTIALS }}'
121
121
- name : Set up Cloud SDK
122
122
if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows' }}
123
- uses : ' google-github-actions/setup-gcloud@v2 '
123
+ uses : google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a # v2.1.4 https://github.com/google-github-actions/setup-gcloud/releases/tag/v2.1.4
124
124
- name : Sign binary (Windows)
125
125
if : ${{ startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows' }}
126
126
shell : pwsh
@@ -242,13 +242,13 @@ jobs:
242
242
243
243
- name : Attest binary (Windows)
244
244
if : startsWith(github.ref, 'refs/tags/') && matrix.os == 'windows'
245
- uses : actions/attest-build-provenance@v2
245
+ uses : actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.3.0
246
246
with :
247
247
subject-path : ' ${{ env.APPLICATION_NAME }}.exe'
248
248
249
249
- name : Attest binary
250
250
if : startsWith(github.ref, 'refs/tags/') && matrix.os != 'windows'
251
- uses : actions/attest-build-provenance@v2
251
+ uses : actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.3.0
252
252
with :
253
253
subject-path : ' ${{ env.APPLICATION_NAME }}'
254
254
@@ -265,26 +265,26 @@ jobs:
265
265
statuses : write
266
266
steps :
267
267
- run : " echo \" RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
268
- - uses : actions/checkout@v4
268
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 https://github.com/actions/checkout/releases/tag/v4.2.2
269
269
with :
270
270
fetch-depth : ' 0'
271
271
- name : Set up QEMU
272
- uses : docker/setup-qemu-action@v3
272
+ uses : docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0 https://github.com/docker/setup-qemu-action/releases/tag/v3.6.0
273
273
- name : Set up Docker Buildx
274
- uses : docker/setup-buildx-action@v3
274
+ uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0 https://github.com/docker/setup-buildx-action/releases/tag/v3.10.0
275
275
- name : Login to Docker Hub
276
- uses : docker/login-action@v3
276
+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 https://github.com/docker/login-action/releases/tag/v3.4.0
277
277
with :
278
278
username : blinklabs
279
279
password : ${{ secrets.DOCKER_PASSWORD }} # uses token
280
280
- name : Login to GHCR
281
- uses : docker/login-action@v3
281
+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 https://github.com/docker/login-action/releases/tag/v3.4.0
282
282
with :
283
283
username : ${{ github.repository_owner }}
284
284
password : ${{ secrets.GITHUB_TOKEN }}
285
285
registry : ghcr.io
286
286
- id : meta
287
- uses : docker/metadata-action@v5
287
+ uses : docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0 https://github.com/docker/metadata-action/releases/tag/v5.7.0
288
288
with :
289
289
images : |
290
290
blinklabs/adder
@@ -298,27 +298,27 @@ jobs:
298
298
type=semver,pattern={{version}}
299
299
- name : Build images
300
300
id : push
301
- uses : docker/build-push-action@v6
301
+ uses : docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0 https://github.com/docker/build-push-action/releases/tag/v6.16.0
302
302
with :
303
303
outputs : " type=registry,push=true"
304
304
platforms : linux/amd64,linux/arm64
305
305
tags : ${{ steps.meta.outputs.tags }}
306
306
labels : ${{ steps.meta.outputs.labels }}
307
307
- name : Attest Docker Hub image
308
- uses : actions/attest-build-provenance@v2
308
+ uses : actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.3.0
309
309
with :
310
310
subject-name : index.docker.io/blinklabs/adder
311
311
subject-digest : ${{ steps.push.outputs.digest }}
312
312
push-to-registry : true
313
313
- name : Attest GHCR image
314
- uses : actions/attest-build-provenance@v2
314
+ uses : actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.3.0
315
315
with :
316
316
subject-name : ghcr.io/${{ github.repository }}
317
317
subject-digest : ${{ steps.push.outputs.digest }}
318
318
push-to-registry : true
319
319
# Update Docker Hub from README
320
320
- name : Docker Hub Description
321
- uses : peter-evans/dockerhub-description@v4
321
+ uses : peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77 # v4.0.2 https://github.com/peter-evans/dockerhub-description/releases/tag/v4.0.2
322
322
with :
323
323
username : blinklabs
324
324
password : ${{ secrets.DOCKER_PASSWORD }}
@@ -332,7 +332,7 @@ jobs:
332
332
contents : write
333
333
needs : [create-draft-release, build-binaries, build-images]
334
334
steps :
335
- - uses : actions/github-script@v7
335
+ - uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 https://github.com/actions/github-script/releases/tag/v7.0.1
336
336
if : startsWith(github.ref, 'refs/tags/')
337
337
with :
338
338
github-token : ${{ secrets.GITHUB_TOKEN }}
@@ -350,4 +350,4 @@ jobs:
350
350
# This updates the documentation on pkg.go.dev and the latest version available via the Go module proxy
351
351
- name : Pull new module version
352
352
if : startsWith(github.ref, 'refs/tags/')
353
- uses :
andrewslotin/[email protected]
353
+ uses : andrewslotin/go-proxy-pull-action@0ef95ea50ab6c03f2f095a5102bbdecad8fd7602 # v1.3.0 https://github.com/andrewslotin/go-proxy-pull-action/releases/tag/ v1.3.0
0 commit comments