2727
2828 steps :
2929 - name : Checkout code
30- uses : actions/checkout@v4
30+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3131 with :
3232 ref : ${{ github.event.inputs.version || github.ref }}
3333
@@ -85,12 +85,12 @@ jobs:
8585
8686 steps :
8787 - name : Checkout code
88- uses : actions/checkout@v4
88+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
8989 with :
9090 ref : ${{ github.event.inputs.version || github.ref }}
9191
9292 - name : Set up Ruby
93- uses : ruby/setup-ruby@v1
93+ uses : ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1
9494 with :
9595 ruby-version : 3.4.5
9696 bundler-cache : true
@@ -120,7 +120,7 @@ jobs:
120120
121121 - name : Upload test results
122122 if : always()
123- uses : actions/upload-artifact@v4
123+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
124124 with :
125125 name : test-results
126126 path : rspec-results.json
@@ -138,20 +138,20 @@ jobs:
138138
139139 steps :
140140 - name : Checkout code
141- uses : actions/checkout@v4
141+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
142142 with :
143143 ref : ${{ github.event.inputs.version || github.ref }}
144144
145145 - name : Run Trivy vulnerability scanner
146- uses : aquasecurity/trivy-action@master
146+ uses : aquasecurity/trivy-action@22438a435773de8c97dc0958cc0b823c45b064ac # master
147147 with :
148148 scan-type : ' fs'
149149 scan-ref : ' .'
150150 format : ' sarif'
151151 output : ' trivy-results.sarif'
152152
153153 - name : Upload Trivy results
154- uses : github/codeql-action/upload-sarif@v3
154+ uses : github/codeql-action/upload-sarif@b5ebac6f4c00c8ccddb7cdcd45fdb248329f808a # v3
155155 with :
156156 sarif_file : ' trivy-results.sarif'
157157
@@ -170,7 +170,7 @@ jobs:
170170
171171 steps :
172172 - name : Checkout code
173- uses : actions/checkout@v4
173+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
174174 with :
175175 ref : ${{ github.event.inputs.version || github.ref }}
176176
@@ -188,18 +188,18 @@ jobs:
188188 echo "Building version: $VERSION"
189189
190190 - name : Set up Docker Buildx
191- uses : docker/setup-buildx-action@v3
191+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
192192
193193 - name : Log in to Container Registry
194- uses : docker/login-action@v3
194+ uses : docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
195195 with :
196196 registry : ${{ env.REGISTRY }}
197197 username : ${{ github.actor }}
198198 password : ${{ secrets.GITHUB_TOKEN }}
199199
200200 - name : Extract metadata
201201 id : meta
202- uses : docker/metadata-action@v5
202+ uses : docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
203203 with :
204204 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
205205 tags : |
@@ -210,7 +210,7 @@ jobs:
210210 type=sha,prefix=prod-
211211
212212 - name : Build and push Docker image
213- uses : docker/build-push-action@v5
213+ uses : docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
214214 with :
215215 context : .
216216 file : ./Dockerfile.production
@@ -258,7 +258,7 @@ jobs:
258258
259259 steps :
260260 - name : Checkout code
261- uses : actions/checkout@v4
261+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
262262 with :
263263 ref : ${{ github.event.inputs.version || github.ref }}
264264
@@ -407,7 +407,7 @@ jobs:
407407 echo "✅ All post-deployment checks passed!"
408408
409409 - name : Create GitHub Release
410- uses : actions/create-release@v1
410+ uses : actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
411411 env :
412412 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
413413 with :
@@ -472,7 +472,7 @@ jobs:
472472
473473 - name : Slack notification
474474 if : always()
475- uses : slackapi/slack-github-action@v1.26.0
475+ uses : slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
476476 with :
477477 payload : |
478478 {
0 commit comments