mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-28 11:46:20 -04:00
clair/vulns: use basic auth whe token is empty (#64)
- solves issue with Clair/AWS ECR combo
This commit is contained in:
parent
44f18c0104
commit
706e96ba44
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ func (c *Clair) NewClairLayer(r *registry.Registry, image string, fsLayers []sch
|
|||
}
|
||||
}
|
||||
|
||||
if useBasicAuth {
|
||||
if token == "" || useBasicAuth {
|
||||
h = map[string]string{
|
||||
"Authorization": fmt.Sprintf("Basic %s", base64.StdEncoding.EncodeToString([]byte(r.Username+":"+r.Password))),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue