3131 version : ${{ steps.version.outputs.version }}
3232 steps :
3333 - name : Checkout repository
34- uses : actions/checkout@v4
34+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3535 with :
3636 fetch-depth : 0
3737
4747 echo "Building synkronus-cli with version: ${VERSION}"
4848
4949 - name : Set up Go
50- uses : actions/setup-go@v5
50+ uses : actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
5151 with :
5252 go-version : ' 1.25.x'
5353 cache-dependency-path : synkronus-cli/go.sum
6565 CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="${LD_FLAGS}" -o "${ROOT}/docker-dist/synk-linux-arm64" ./cmd/synkronus
6666
6767 - name : Upload docker build context artifact
68- uses : actions/upload-artifact@v4
68+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
6969 with :
7070 name : synkronus-cli-docker-dist
7171 path : docker-dist/
@@ -82,10 +82,10 @@ jobs:
8282 digest : ${{ steps.push.outputs.digest }}
8383 steps :
8484 - name : Checkout repository
85- uses : actions/checkout@v4
85+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
8686
8787 - name : Download docker build context
88- uses : actions/download-artifact@v4
88+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
8989 with :
9090 name : synkronus-cli-docker-dist
9191 path : docker-dist/
@@ -99,15 +99,15 @@ jobs:
9999
100100 - name : Log in to Github Container Registry
101101 if : github.event_name != 'pull_request'
102- uses : redhat-actions/podman-login@v1
102+ uses : redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # v1
103103 with :
104104 username : ${{ github.actor }}
105105 password : ${{ secrets.GITHUB_TOKEN }}
106106 registry : ${{ env.REGISTRY }}
107107
108108 - name : Compute image metadata (scratch tag)
109109 id : meta
110- uses : docker/metadata-action@v6
110+ uses : docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
111111 with :
112112 images : |
113113 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
@@ -116,7 +116,7 @@ jobs:
116116
117117 - name : Build image with Buildah
118118 id : build-image
119- uses : redhat-actions/buildah-build@v2
119+ uses : redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2
120120 with :
121121 image : ${{ env.IMAGE_NAME }}
122122 tags : ${{ steps.meta.outputs.tag-names }}
@@ -129,7 +129,7 @@ jobs:
129129 - name : Push image to registry
130130 id : push
131131 if : github.event_name != 'pull_request'
132- uses : redhat-actions/push-to-registry@v2
132+ uses : redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
133133 with :
134134 image : ${{ steps.build-image.outputs.image }}
135135 tags : ${{ steps.build-image.outputs.tags }}
@@ -146,10 +146,10 @@ jobs:
146146 digest : ${{ steps.push.outputs.digest }}
147147 steps :
148148 - name : Checkout repository
149- uses : actions/checkout@v4
149+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
150150
151151 - name : Download docker build context
152- uses : actions/download-artifact@v4
152+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
153153 with :
154154 name : synkronus-cli-docker-dist
155155 path : docker-dist/
@@ -163,15 +163,15 @@ jobs:
163163
164164 - name : Log in to Github Container Registry
165165 if : github.event_name != 'pull_request'
166- uses : redhat-actions/podman-login@v1
166+ uses : redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # v1
167167 with :
168168 username : ${{ github.actor }}
169169 password : ${{ secrets.GITHUB_TOKEN }}
170170 registry : ${{ env.REGISTRY }}
171171
172172 - name : Compute image metadata (scratch tag)
173173 id : meta
174- uses : docker/metadata-action@v6
174+ uses : docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
175175 with :
176176 images : |
177177 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
@@ -180,7 +180,7 @@ jobs:
180180
181181 - name : Build image with Buildah
182182 id : build-image
183- uses : redhat-actions/buildah-build@v2
183+ uses : redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2
184184 with :
185185 image : ${{ env.IMAGE_NAME }}
186186 tags : ${{ steps.meta.outputs.tag-names }}
@@ -193,7 +193,7 @@ jobs:
193193 - name : Push image to registry
194194 id : push
195195 if : github.event_name != 'pull_request'
196- uses : redhat-actions/push-to-registry@v2
196+ uses : redhat-actions/push-to-registry@5ed88d269cf581ea9ef6dd6806d01562096bee9c # v2
197197 with :
198198 image : ${{ steps.build-image.outputs.image }}
199199 tags : ${{ steps.build-image.outputs.tags }}
@@ -211,15 +211,15 @@ jobs:
211211 attestations : write
212212 steps :
213213 - name : Log in to Github Container Registry (docker)
214- uses : docker/login-action@v3
214+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
215215 with :
216216 registry : ${{ env.REGISTRY }}
217217 username : ${{ github.actor }}
218218 password : ${{ secrets.GITHUB_TOKEN }}
219219
220220 - name : Compute image tags and labels
221221 id : tags
222- uses : docker/metadata-action@v6
222+ uses : docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
223223 with :
224224 images : |
225225 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
@@ -283,7 +283,7 @@ jobs:
283283 echo "digest=${DIGEST}" >> "${GITHUB_OUTPUT}"
284284
285285 - name : Generate artifact attestation
286- uses : actions/attest-build-provenance@v1
286+ uses : actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1
287287 with :
288288 subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
289289 subject-digest : ${{ steps.manifest-digest.outputs.digest }}
0 commit comments