feat : scan with image digest (#939)

This commit is contained in:
Tomoya Amachi
2020-03-03 16:51:06 +09:00
committed by GitHub
parent fe3f1b9924
commit 9aa0d87a21
8 changed files with 83 additions and 11 deletions

View File

@@ -530,7 +530,7 @@ func EnsureUUIDs(configPath string, results models.ScanResults) error {
server.UUIDs[r.ServerName] = uuid
}
} else if r.IsImage() {
name = fmt.Sprintf("%s:%s@%s", r.Image.Name, r.Image.Tag, r.ServerName)
name = fmt.Sprintf("%s%s@%s", r.Image.Tag, r.Image.Digest, r.ServerName)
if uuid := getOrCreateServerUUID(r, server); uuid != "" {
server.UUIDs[r.ServerName] = uuid
}