@@ -131,7 +131,7 @@ jobs:
131131 echo "Validating inputs to ensure they conform to expected formats..."
132132 echo "${{ inputs.versionTag }}" | grep -P '^\d+\.\d+\.\d+$|^\d+\.\d+\.\d+-[a-zA-Z0-9-]+|v3\.\d{4}.\d{2}.\d{2}.\d+.*$'
133133
134- - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
134+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
135135 with :
136136 fetch-depth : 0
137137 ref : ${{ inputs.branch || github.ref_name }}
@@ -190,7 +190,7 @@ jobs:
190190 steps :
191191 - name : Configure AWS credentials
192192 if : ${{ !inputs.skipBasePull }}
193- uses : aws-actions/configure-aws-credentials@517a711dbcd0e402f90c77e7e2f81e849156e31d # v6
193+ uses : aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6
194194 with :
195195 role-to-assume : ${{ secrets.NON_PROD_ACCOUNT_GHA_ROLE_ARN }}
196196 role-session-name : build-container-images-${{ github.run_id }}-${{ github.run_attempt }}
@@ -244,7 +244,7 @@ jobs:
244244 BASE_IMAGES_VERSION : ${{ needs.compute-matrix-and-version.outputs.base-images-version }}
245245 steps :
246246 - name : Checkout
247- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
247+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
248248 with :
249249 fetch-depth : 0
250250 ref : ${{ inputs.branch || github.ref_name }}
@@ -277,6 +277,8 @@ jobs:
277277 - name : Generate build-contexts
278278 if : ${{ !inputs.skipBasePull }}
279279 id : gen-build-contexts
280+ env :
281+ NAMED_CONTEXTS : ${{ toJSON(matrix.image.namedContexts) || '{}' }}
280282 run : |
281283 build_contexts=()
282284
@@ -287,6 +289,15 @@ jobs:
287289 build_contexts+=("${image}:latest=docker-image://localhost:5000/${image}:${BASE_IMAGES_VERSION}")
288290 done
289291
292+ readarray -t named_contexts < <(echo "$NAMED_CONTEXTS" | jq -rc '. // {} | to_entries[]')
293+ for named_context in "${named_contexts[@]}"
294+ do
295+ context_name="$(jq -rc '.key' <<<"$named_context")"
296+ context_path="$(jq -rc '.value' <<<"$named_context")"
297+
298+ build_contexts+=("${context_name}=${context_path}")
299+ done
300+
290301 build_contexts_json="$(jq -c -n '$ARGS.positional' --args "${build_contexts[@]}")"
291302
292303 echo "build-contexts=$build_contexts_json" >> "$GITHUB_OUTPUT"
@@ -349,7 +360,7 @@ jobs:
349360 merge-multiple : true
350361
351362 - name : Configure AWS credentials
352- uses : aws-actions/configure-aws-credentials@517a711dbcd0e402f90c77e7e2f81e849156e31d # v6
363+ uses : aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6
353364 with :
354365 role-to-assume : ${{ steps.get-role-arn.outputs.role-arn }}
355366 role-session-name : build-container-images-${{ github.run_id }}-${{ github.run_attempt }}
0 commit comments