ci: release: disable interpretation backslash esc

This ensures `jq` can properly parse the given `ARTIFACTS` JSON blob,
as it contains escaped newlines in for example the Brew formula.

This should address the issue with the generation of SLSA metadata.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
pull/4041/head
Hidde Beydals 2 years ago
parent 9ea0a535ea
commit 506da2466b
No known key found for this signature in database
GPG Key ID: 979F380FC2341744

@ -94,7 +94,7 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
hashes=$(echo $ARTIFACTS | jq --raw-output '.[] | {name, "digest": (.extra.Digest // .extra.Checksum)} | select(.digest) | {digest} + {name} | join(" ") | sub("^sha256:";"")' | base64 -w0) hashes=$(echo -E $ARTIFACTS | jq --raw-output '.[] | {name, "digest": (.extra.Digest // .extra.Checksum)} | select(.digest) | {digest} + {name} | join(" ") | sub("^sha256:";"")' | base64 -w0)
echo "hashes=$hashes" >> $GITHUB_OUTPUT echo "hashes=$hashes" >> $GITHUB_OUTPUT
image_url=fluxcd/flux-cli:${{ steps.prep.outputs.version }} image_url=fluxcd/flux-cli:${{ steps.prep.outputs.version }}

Loading…
Cancel
Save