From 26ada49c1ad50af5e11dbb8a65b703251295c689 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Mon, 25 May 2026 08:45:09 -0600 Subject: [PATCH] Update pkg/registry/client.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Terry Howe --- pkg/registry/client.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/registry/client.go b/pkg/registry/client.go index e252ad2c5..4d7da78dc 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -937,9 +937,6 @@ func (c *Client) tagManifest(ctx context.Context, memoryStore *memory.Store, // auth?scope=repository%3Atestrepo%2Flocal-subchart%3Apull%2Cpush&service=testservice // we can set the actions like below // example) ctx = withScopeHint(ctx, repository, auth.ActionPush, auth.ActionPull) -func withScopeHint(ctx context.Context, target any, actions ...string) context.Context { - if repo, ok := target.(*remote.Repository); ok { - return auth.AppendRepositoryScope(ctx, repo.Reference, actions...) - } - return ctx +func withScopeHint(ctx context.Context, repo *remote.Repository, actions ...string) context.Context { + return auth.AppendRepositoryScope(ctx, repo.Reference, actions...) }