Closed
Description
osv-scalibr/clients/datasource/maven_registry.go
Lines 108 to 116 in 912e952
Adding registryAuths to the WithoutRegistries() method fixes this:
// WithoutRegistries makes MavenRegistryAPIClient including its cache but not registries.
func (m *MavenRegistryAPIClient) WithoutRegistries() *MavenRegistryAPIClient {
return &MavenRegistryAPIClient{
defaultRegistry: m.defaultRegistry,
localRegistry: m.localRegistry,
mu: m.mu,
cacheTimestamp: m.cacheTimestamp,
responses: m.responses,
registryAuths: m.registryAuths,
}
}
This is being used in OSV-Scanner for resolving parent dependencies and causes failures when using private maven repositories that require authentication.
Resolves other repo issue: google/osv-scanner#1930
Metadata
Metadata
Assignees
Labels
No labels