We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b597eb6 + 8f261f9 commit e1f06b1Copy full SHA for e1f06b1
pkg/scan/apk.go
@@ -482,6 +482,14 @@ var trustedCPESources = []cpe.Source{
482
483
var regexGolangDateVersion = regexp.MustCompile(`^\d{4}-\d{2}-\d{2}$`)
484
485
+// DatabaseBuiltAt returns the time when the vulnerability database was built.
486
+func (s *Scanner) DatabaseBuiltAt() time.Time {
487
+ if s.dbStatus == nil {
488
+ return time.Time{}
489
+ }
490
+ return s.dbStatus.Built
491
+}
492
+
493
// Close closes the scanner's database connection.
494
func (s *Scanner) Close() {
495
if s.vulnProvider == nil {
0 commit comments