8080 fi
8181 fi
8282 - name : Checkout code
83- uses : actions/checkout@v6
83+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8484 with :
8585 ref : ${{ inputs.git_ref_to_deploy || github.sha }}
8686 - name : Get git sha
@@ -109,12 +109,12 @@ jobs:
109109 repository_name : ${{ matrix.service == 'ops' && 'mavis/ops' || 'mavis/webapp' }}
110110 steps :
111111 - name : Checkout code
112- uses : actions/checkout@v6
112+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
113113 id : checkout-code
114114 with :
115115 ref : ${{ needs.validate-and-resolve-sha.outputs.git-sha }}
116116 - name : Configure AWS Credentials
117- uses : aws-actions/configure-aws-credentials@v6
117+ uses : aws-actions/configure-aws-credentials@a89a83ec143615402a01f672b6e172b7b1875000 # v6.1.0
118118 with :
119119 role-to-assume : arn:aws:iam::${{ env.aws_account_id }}:role/GithubDeployECSService
120120 aws-region : eu-west-2
@@ -131,7 +131,7 @@ jobs:
131131 echo "digest=$digest" >> "$GITHUB_OUTPUT"
132132 - name : Populate task definition
133133 id : create-task-definition
134- uses : aws-actions/amazon-ecs-render-task-definition@v1
134+ uses : aws-actions/amazon-ecs-render-task-definition@77954e213ba1f9f9cb016b86a1d4f6fcdea0d57e # v1.8.4
135135 with :
136136 task-definition-family :
137137 mavis-${{ matrix.service }}-task-definition-${{ inputs.environment }}-template
@@ -147,7 +147,7 @@ jobs:
147147 mv ${{ steps.create-task-definition.outputs.task-definition }} ${{ runner.temp }}/${{
148148 matrix.service }}-task-definition.json
149149 - name : Upload artifact for ${{ matrix.service }} task definition
150- uses : actions/upload-artifact@v7
150+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
151151 with :
152152 name : ${{ inputs.environment }}-${{ matrix.service }}-task-definition
153153 path : ${{ runner.temp }}/${{ matrix.service }}-task-definition.json
@@ -196,14 +196,14 @@ jobs:
196196 id-token : write
197197 steps :
198198 - name : Checkout code
199- uses : actions/checkout@v6
199+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
200200 - name : Configure AWS Credentials
201- uses : aws-actions/configure-aws-credentials@v6
201+ uses : aws-actions/configure-aws-credentials@a89a83ec143615402a01f672b6e172b7b1875000 # v6.1.0
202202 with :
203203 role-to-assume : arn:aws:iam::${{ env.aws_account_id }}:role/GithubDeployECSService
204204 aws-region : eu-west-2
205205 - name : Download ops task definition artifact
206- uses : actions/download-artifact@v8
206+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
207207 with :
208208 path : ${{ runner.temp }}
209209 name : ${{ inputs.environment }}-ops-task-definition
@@ -332,12 +332,12 @@ jobs:
332332 fromJSON(format('["{0}"]', inputs.server_types)) }}
333333 steps :
334334 - name : Configure AWS Credentials
335- uses : aws-actions/configure-aws-credentials@v6
335+ uses : aws-actions/configure-aws-credentials@a89a83ec143615402a01f672b6e172b7b1875000 # v6.1.0
336336 with :
337337 role-to-assume : arn:aws:iam::${{ env.aws_account_id }}:role/GithubDeployECSService
338338 aws-region : eu-west-2
339339 - name : Download ${{ matrix.service }} task definition artifact
340- uses : actions/download-artifact@v8
340+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
341341 with :
342342 path : ${{ runner.temp }}
343343 name : ${{ inputs.environment }}-${{ matrix.service }}-task-definition
@@ -348,7 +348,7 @@ jobs:
348348 jq --arg f "$family_name" '.family = $f' "$file_path" > tmpfile && mv tmpfile "$file_path"
349349 - name : Deploy ${{ matrix.service }} service
350350 id : ecs-deploy
351- uses : aws-actions/amazon-ecs-deploy-task-definition@v2
351+ uses : aws-actions/amazon-ecs-deploy-task-definition@fc8fc60f3a60ffd500fcb13b209c59d221ac8c8c # v2.6.1
352352 with :
353353 task-definition : ${{ runner.temp }}/${{ matrix.service }}-task-definition.json
354354 cluster : ${{ env.cluster_name }}
@@ -376,14 +376,14 @@ jobs:
376376 id-token : write
377377 steps :
378378 - name : Checkout code
379- uses : actions/checkout@v6
379+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
380380 - name : Configure AWS Credentials
381- uses : aws-actions/configure-aws-credentials@v6
381+ uses : aws-actions/configure-aws-credentials@a89a83ec143615402a01f672b6e172b7b1875000 # v6.1.0
382382 with :
383383 role-to-assume : arn:aws:iam::${{ env.aws_account_id }}:role/GithubDeployECSService
384384 aws-region : eu-west-2
385385 - name : Download ops task definition artifact
386- uses : actions/download-artifact@v8
386+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
387387 with :
388388 path : ${{ runner.temp }}
389389 name : ${{ inputs.environment }}-ops-task-definition
0 commit comments