diff --git a/Sources/tart/OCI/Registry.swift b/Sources/tart/OCI/Registry.swift index 8f2533e..0789b30 100644 --- a/Sources/tart/OCI/Registry.swift +++ b/Sources/tart/OCI/Registry.swift @@ -258,7 +258,7 @@ class Registry { var response = try await authAwareRequest(request: request) - if response.status == .unauthorized { + if doAuth && response.status == .unauthorized { try await auth(response: response) response = try await authAwareRequest(request: request) }