mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
fix(security): fix for ci template injection in .github/workflows/build-and-dockerize.yaml (#7876)
Co-authored-by: aikido-autofix[bot] <119856028+aikido-autofix[bot]@users.noreply.github.com> Co-authored-by: Laurin <laurinquast@googlemail.com>
This commit is contained in:
parent
3500825b12
commit
f550eb3bed
1 changed files with 6 additions and 2 deletions
8
.github/workflows/build-and-dockerize.yaml
vendored
8
.github/workflows/build-and-dockerize.yaml
vendored
|
|
@ -240,13 +240,17 @@ jobs:
|
|||
|
||||
- name: 'publish docker multiarch manifest (tag: latest)'
|
||||
if: ${{ inputs.publishLatest }}
|
||||
env:
|
||||
TARGETS: ${{ inputs.targets }}
|
||||
REGISTRY: ${{ inputs.registry }}
|
||||
IMAGE_NAME: ${{ inputs.imageName }}
|
||||
run: |
|
||||
targets=$(docker buildx bake -f docker/docker.hcl --print "${{ inputs.targets }}" | jq -r '.group."${{ inputs.targets }}".targets[]')
|
||||
targets=$(docker buildx bake -f docker/docker.hcl --print "$TARGETS" | jq -r '.group."'"$TARGETS"'".targets[]')
|
||||
|
||||
for target in $targets
|
||||
do
|
||||
echo "publishing multi-arch manifest for $target"
|
||||
image_name="${{ inputs.registry }}/${{ inputs.imageName }}/$target:latest"
|
||||
image_name="$REGISTRY/$IMAGE_NAME/$target:latest"
|
||||
echo "image name: $image_name"
|
||||
|
||||
docker manifest create $image_name --amend "$image_name-arm64" --amend "$image_name-amd64"
|
||||
|
|
|
|||
Loading…
Reference in a new issue