From 34e7a12fdcb9e48d14b6235679ef5ef43ff08ea9 Mon Sep 17 00:00:00 2001 From: Oussama Miladi <35038682+omiladi@users.noreply.github.com> Date: Wed, 1 Jul 2026 18:09:49 +0200 Subject: [PATCH] fix(ci): :bug: disable base64 line wrapping in auth header --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6b2cc4..b552641 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,26 +74,26 @@ jobs: --silent \ --write-out '%{http_code}' \ --output /dev/null \ - -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64)" \ + -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64 -w 0)" \ https://${{ inputs.REGISTRY }}/v2/${{ inputs.NAMESPACE }}/${{ matrix.images.name }}/manifests/${{ matrix.images.build.tag }}) if [ ! "$IMAGE_STATUS" == "404" ]; then if [ "${{ inputs.BUILD_AMD64 }}" == "true" ] && [ "${{ inputs.BUILD_ARM64 }}" == "true" ]; then NEEDS_BUILD=$(curl \ --silent \ - -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64)" \ + -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64 -w 0)" \ https://${{ inputs.REGISTRY }}/v2/${{ inputs.NAMESPACE }}/${{ matrix.images.name }}/manifests/${{ matrix.images.build.tag }} \ | jq '[.manifests[] | select(.platform.architecture == "amd64" or .platform.architecture == "arm64")] | length < 2') elif [ "${{ inputs.BUILD_ARM64 }}" == "true" ]; then NEEDS_BUILD=$(curl \ --silent \ - -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64)" \ + -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64 -w 0)" \ https://${{ inputs.REGISTRY }}/v2/${{ inputs.NAMESPACE }}/${{ matrix.images.name }}/manifests/${{ matrix.images.build.tag }} \ | jq '[.manifests[] | select(.platform.architecture == "arm64")] | length < 1') else NEEDS_BUILD=$(curl \ --silent \ - -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64)" \ + -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64 -w 0)" \ https://${{ inputs.REGISTRY }}/v2/${{ inputs.NAMESPACE }}/${{ matrix.images.name }}/manifests/${{ matrix.images.build.tag }} \ | jq '[.manifests[] | select(.platform.architecture == "amd64")] | length < 1') fi @@ -171,26 +171,26 @@ jobs: --silent \ --write-out '%{http_code}' \ --output /dev/null \ - -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64)" \ + -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64 -w 0)" \ https://${{ inputs.REGISTRY }}/v2/${{ inputs.NAMESPACE }}/${{ matrix.images.name }}/manifests/${{ matrix.images.build.tag }}) if [ ! "$IMAGE_STATUS" == "404" ]; then if [ "${{ inputs.BUILD_AMD64 }}" == "true" ] && [ "${{ inputs.BUILD_ARM64 }}" == "true" ]; then NEEDS_BUILD=$(curl \ --silent \ - -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64)" \ + -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64 -w 0)" \ https://${{ inputs.REGISTRY }}/v2/${{ inputs.NAMESPACE }}/${{ matrix.images.name }}/manifests/${{ matrix.images.build.tag }} \ | jq '[.manifests[] | select(.platform.architecture == "amd64" or .platform.architecture == "arm64")] | length < 2') elif [ "${{ inputs.BUILD_ARM64 }}" == "true" ]; then NEEDS_BUILD=$(curl \ --silent \ - -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64)" \ + -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64 -w 0)" \ https://${{ inputs.REGISTRY }}/v2/${{ inputs.NAMESPACE }}/${{ matrix.images.name }}/manifests/${{ matrix.images.build.tag }} \ | jq '[.manifests[] | select(.platform.architecture == "arm64")] | length < 1') else NEEDS_BUILD=$(curl \ --silent \ - -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64)" \ + -H "Authorization: Bearer $(echo -n '${{ secrets.GITHUB_TOKEN }}' | base64 -w 0)" \ https://${{ inputs.REGISTRY }}/v2/${{ inputs.NAMESPACE }}/${{ matrix.images.name }}/manifests/${{ matrix.images.build.tag }} \ | jq '[.manifests[] | select(.platform.architecture == "amd64")] | length < 1') fi