package cveinfo import ( "github.com/anuvu/zot/pkg/log" integration "github.com/aquasecurity/trivy/integration" config "github.com/aquasecurity/trivy/integration/config" ) // UpdateCVEDb ... func UpdateCVEDb(dbDir string, log log.Logger) error { config, err := config.NewConfig(dbDir) if err != nil { log.Error().Err(err).Msg("Unable to get config") return err } err = integration.RunTrivyDb(config.TrivyConfig) if err != nil { log.Error().Err(err).Msg("Unable to update DB ") return err } return nil }