Fix reporting for images without CVEs
Some checks failed
Go / build (push) Has been cancelled

Signed-off-by: Christian Dupuis <cd@atomist.com>
This commit is contained in:
Christian Dupuis
2022-10-25 15:06:58 +02:00
parent 81ff63779b
commit 45dec2439e
4 changed files with 9 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ func DigestForImage(dockerCli command.Cli, image string) ([]digest.Digest, error
}
// check local daemon first
img, err := daemon.Image(ref)
img, err := daemon.Image(ref, daemon.WithClient(dockerCli.Client()))
if err != nil {
// image doesn't exist in daemon; try remote
index, _ := remote.Index(ref, remote.WithAuthFromKeychain(authn.DefaultKeychain))