From e8fa0f614dd264df818ea1e683737a81c42bdf5b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 11 Nov 2026 09:36:45 +0100 Subject: [PATCH] ci: Handle special characters in build metadata Pass Buildx metadata through an environment variable instead of embedding it directly in the script. This preserves the metadata contents and prevents special characters from causing release preparation to fail. Signed-off-by: Sebastiaan van Stijn --- .github/workflows/.build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/.build.yml b/.github/workflows/.build.yml index ab9c842e..e140f03d 100644 --- a/.github/workflows/.build.yml +++ b/.github/workflows/.build.yml @@ -374,10 +374,10 @@ jobs: rm -rf /tmp/release-squashed - name: Prepare release + env: + BUILD_METADATA: ${{ steps.build.outputs.metadata }} run: | - cat > "/tmp/release-metadata.json" <<-EOF - ${{ steps.build.outputs.metadata }} - EOF + printf '%s\n' "$BUILD_METADATA" > /tmp/release-metadata.json for tag in $(jq -r '.tags[]' <<< "$DOCKER_METADATA_OUTPUT_JSON"); do echo "* \`${tag}\`" >> /tmp/tags.txt