From 294ded41ae06b22dda6f36e7da13e33ed823f033 Mon Sep 17 00:00:00 2001 From: Guillaume Da Silva Date: Tue, 3 Feb 2026 11:01:16 +0100 Subject: [PATCH] fix: normalize container registry username to lowercase Docker registry names must be lowercase. This fix normalizes the username to lowercase before sending to the API, preventing the error: 'invalid tag ghcr.io/Guimove/...: repository name must be lowercase' This applies to all registry types, not just GitHub Container Registry. --- .../container-registry-create-edit-modal.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/domains/organizations/feature/src/lib/container-registry-create-edit-modal/container-registry-create-edit-modal.tsx b/libs/domains/organizations/feature/src/lib/container-registry-create-edit-modal/container-registry-create-edit-modal.tsx index 8c5765e286f..b7b2deb8c5b 100644 --- a/libs/domains/organizations/feature/src/lib/container-registry-create-edit-modal/container-registry-create-edit-modal.tsx +++ b/libs/domains/organizations/feature/src/lib/container-registry-create-edit-modal/container-registry-create-edit-modal.tsx @@ -88,6 +88,9 @@ export function ContainerRegistryCreateEditModal({ ...rest } = containerRegistryRequest try { + // Normalize username to lowercase - Docker registry names must be lowercase + const normalizedConfig = config?.username ? { ...config, username: config.username.toLowerCase() } : config + const commonPayload = { organizationId: organizationId, containerRegistryRequest: { @@ -101,7 +104,7 @@ export function ContainerRegistryCreateEditModal({ } : { role_arn: undefined, - ...config, + ...normalizedConfig, }, }, }