From 83e9788077d2d7bb26d47bfdcc9ffa850684b2e7 Mon Sep 17 00:00:00 2001 From: Shahram Kalantari Date: Sun, 29 Sep 2024 19:35:43 +1000 Subject: [PATCH] chore: address comments Signed-off-by: Shahram Kalantari --- pkg/common/oras/authprovider/azure/azureworkloadidentity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/common/oras/authprovider/azure/azureworkloadidentity.go b/pkg/common/oras/authprovider/azure/azureworkloadidentity.go index 241696bcfe..b35a4e6ec2 100644 --- a/pkg/common/oras/authprovider/azure/azureworkloadidentity.go +++ b/pkg/common/oras/authprovider/azure/azureworkloadidentity.go @@ -155,7 +155,8 @@ func (d *WIAuthProvider) Provide(ctx context.Context, artifact string) (provider serverURL := "https://" + artifactHostName // TODO: Consider adding authentication client options for multicloud scenarios - client, err := d.authClientFactory(serverURL, nil) + var options *azcontainerregistry.AuthenticationClientOptions + client, err := d.authClientFactory(serverURL, options) if err != nil { return provider.AuthConfig{}, re.ErrorCodeAuthDenied.NewError(re.AuthProvider, "", re.AzureWorkloadIdentityLink, err, "failed to create authentication client for container registry", re.HideStackTrace) }