17
17
RELEASE_ID : ${{ steps.create-release.outputs.result }}
18
18
steps :
19
19
- run : " echo \" RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
20
- - uses : actions/github-script@v7
20
+ - uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 https://github.com/actions/github-script/releases/tag/v7.0.1
21
21
id : create-release
22
22
if : startsWith(github.ref, 'refs/tags/')
23
23
with :
@@ -57,10 +57,10 @@ jobs:
57
57
statuses : write
58
58
steps :
59
59
- run : " echo \" RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
60
- - uses : actions/checkout@v4
60
+ - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
61
61
with :
62
62
fetch-depth : ' 0'
63
- - uses : actions/setup-go@v5
63
+ - uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 https://github.com/actions/setup-go/releases/tag/v5.5.0
64
64
with :
65
65
go-version : 1.23.x
66
66
- name : Build binary
79
79
--data-binary @${_filename} \
80
80
https://uploads.github.com/repos/${{ github.repository_owner }}/vpn-indexer/releases/${{ needs.create-draft-release.outputs.RELEASE_ID }}/assets?name=${_filename}
81
81
- name : Attest binary
82
- uses : actions/attest-build-provenance@v2
82
+ uses : actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.4.0
83
83
with :
84
84
subject-path : ' vpn-indexer'
85
85
@@ -104,24 +104,24 @@ jobs:
104
104
runs-on : ${{ matrix.os }}
105
105
steps :
106
106
- run : " echo \" RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
107
- - uses : actions/checkout@v4
107
+ - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
108
108
with :
109
109
fetch-depth : ' 0'
110
110
- name : Set up Docker Buildx
111
- uses : docker/setup-buildx-action@v3
111
+ uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 https://github.com/docker/setup-buildx-action/releases/tag/v3.11.1
112
112
- name : Login to Docker Hub
113
- uses : docker/login-action@v3
113
+ uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 https://github.com/docker/login-action/releases/tag/v3.5.0
114
114
with :
115
115
username : blinklabs
116
116
password : ${{ secrets.DOCKER_PASSWORD }} # uses token
117
117
- name : Login to GHCR
118
- uses : docker/login-action@v3
118
+ uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 https://github.com/docker/login-action/releases/tag/v3.5.0
119
119
with :
120
120
username : ${{ github.repository_owner }}
121
121
password : ${{ secrets.GITHUB_TOKEN }}
122
122
registry : ghcr.io
123
123
- id : meta
124
- uses : docker/metadata-action@v5
124
+ uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 https://github.com/docker/metadata-action/releases/tag/v5.8.0
125
125
with :
126
126
images : |
127
127
blinklabs/vpn-indexer
@@ -137,21 +137,21 @@ jobs:
137
137
# semver
138
138
type=semver,pattern={{version}}
139
139
- name : Build images
140
- uses : docker/build-push-action@v6
140
+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 https://github.com/docker/build-push-action/releases/tag/v6.18.0
141
141
id : push
142
142
with :
143
143
outputs : " type=registry,push=true"
144
144
platforms : linux/${{ matrix.arch }}
145
145
tags : ${{ steps.meta.outputs.tags }}
146
146
labels : ${{ steps.meta.outputs.labels }}
147
147
- name : Attest Docker Hub image
148
- uses : actions/attest-build-provenance@v2
148
+ uses : actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.4.0
149
149
with :
150
150
subject-name : index.docker.io/blinklabs/vpn-indexer
151
151
subject-digest : ${{ steps.push.outputs.digest }}
152
152
push-to-registry : true
153
153
- name : Attest GHCR image
154
- uses : actions/attest-build-provenance@v2
154
+ uses : actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2.4.0 https://github.com/actions/attest-build-provenance/releases/tag/v2.4.0
155
155
with :
156
156
subject-name : ghcr.io/${{ github.repository }}
157
157
subject-digest : ${{ steps.push.outputs.digest }}
@@ -165,18 +165,18 @@ jobs:
165
165
runs-on : ubuntu-latest
166
166
steps :
167
167
- name : Login to Docker Hub
168
- uses : docker/login-action@v3
168
+ uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 https://github.com/docker/login-action/releases/tag/v3.5.0
169
169
with :
170
170
username : blinklabs
171
171
password : ${{ secrets.DOCKER_PASSWORD }} # uses token
172
172
- name : Login to GHCR
173
- uses : docker/login-action@v3
173
+ uses : docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 https://github.com/docker/login-action/releases/tag/v3.5.0
174
174
with :
175
175
username : ${{ github.repository_owner }}
176
176
password : ${{ secrets.GITHUB_TOKEN }}
177
177
registry : ghcr.io
178
178
- id : meta
179
- uses : docker/metadata-action@v5
179
+ uses : docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 https://github.com/docker/metadata-action/releases/tag/v5.8.0
180
180
with :
181
181
images : |
182
182
blinklabs/vpn-indexer
@@ -201,10 +201,10 @@ jobs:
201
201
docker manifest push ${t}
202
202
done
203
203
# Checkout repo so README.md is available for next step
204
- - uses : actions/checkout@v4
204
+ - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 https://github.com/actions/checkout/releases/tag/v4.3.0
205
205
# Update Docker Hub from README
206
206
- name : Docker Hub Description
207
- uses : peter-evans/dockerhub-description@v4
207
+ uses : peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77 # v4.0.2 https://github.com/peter-evans/dockerhub-description/releases/tag/v4.0.2
208
208
with :
209
209
username : blinklabs
210
210
password : ${{ secrets.DOCKER_PASSWORD }}
@@ -218,7 +218,7 @@ jobs:
218
218
contents : write
219
219
needs : [create-draft-release, build-binaries, build-images, build-image-manifest]
220
220
steps :
221
- - uses : actions/github-script@v7
221
+ - uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 https://github.com/actions/github-script/releases/tag/v7.0.1
222
222
if : startsWith(github.ref, 'refs/tags/')
223
223
with :
224
224
github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments