From 37280a1e2f73e911b645e82c65e20e2ace13a504 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Fri, 24 Jan 2025 14:23:32 +0000 Subject: [PATCH] Fix encoding of registry credentials --- pkg/build/build.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/build/build.go b/pkg/build/build.go index 3c6a713..97f216f 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -54,7 +54,8 @@ func (b *Build) AdditionalTags() []string { func (b *Build) AdditionalCredentials() []Credential { if b.Response == nil || b.Response.Msg == nil { - return []Credential{{Host: "registry.depot.dev", Token: b.Token}} + token := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("x-token:%s", b.Token))) + return []Credential{{Host: "registry.depot.dev", Token: token}} } creds := make([]Credential, 0, len(b.Response.Msg.AdditionalCredentials))