Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Dec 23, 2024
1 parent 225c80a commit 36878b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/util/trivy/crio.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (c *Collector) ScanCRIOImageFromOverlayFS(ctx context.Context, imgMeta *wor
return nil, fmt.Errorf("failed to retrieve layer directories: %w", err)
}

var diffIDs []string
diffIDs := make([]string, 0, len(lowerDirs))
for _, dir := range lowerDirs {
diffIDs = append(diffIDs, "sha256:"+filepath.Base(filepath.Dir(dir)))
}
Expand Down
1 change: 0 additions & 1 deletion pkg/util/trivy/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func convertDockerImage(ctx context.Context, client client.ImageAPIClient, imgMe
inspect: inspect,
history: configHistory(history),
}
img.Image = img

return img, cleanup, nil
}
Expand Down

0 comments on commit 36878b3

Please sign in to comment.