Skip to content

Suggestion of optimizing the scan all #22276

@wy65701436

Description

@wy65701436

Harbor uses Trivy to scan artifacts for CVEs, relying on a CVE database that is regularly downloaded from the network.

Currently, the "scan all" function does not consider the state of the database when deciding whether to perform a scan. I suggest storing metadata about the CVE database and comparing it before running a "scan all" operation. This way, we can avoid unnecessary scans and reduce the overall execution time.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions