From 8b86665247aa51b6c1d9f2c453363de99961d4d2 Mon Sep 17 00:00:00 2001 From: kmk1971 Date: Fri, 31 Jul 2026 19:46:55 +0400 Subject: [PATCH] Trim whitespace/newlines from registry credentials before push Co-Authored-By: Claude Fable 5 --- .forgejo/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 736388b..b7f07cd 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -52,6 +52,9 @@ jobs: quay.io/buildah/stable:latest \ bash -c ' set -euo pipefail + # Secrets pasted with stray whitespace/newlines break registry auth + RUSER="$(printf "%s" "$RUSER" | tr -d " \r\n")" + RTOKEN="$(printf "%s" "$RTOKEN" | tr -d " \r\n")" # Use the fast kernel overlay driver instead of fuse-overlayfs # (we are privileged, so this works — and is ~50x faster on # the millions of small files in the OSTree base)