Debian Report using OVAL

This commit is contained in:
Kota Kanbe
2017-04-24 14:40:31 +09:00
committed by kota kanbe
parent 23c177ed4a
commit e5d32c8764
3 changed files with 15 additions and 8 deletions

View File

@@ -33,8 +33,7 @@ func (o Debian) FillCveInfoFromOvalDB(r models.ScanResult) (*models.ScanResult,
d := db.NewDebian()
for _, pack := range r.Packages {
// TODO: Set the correct release after implementing LIKE in goval-dictionary
definitions, err := d.GetByPackName("8.2", pack.Name)
definitions, err := d.GetByPackName(r.Release, pack.Name)
if err != nil {
return nil, fmt.Errorf("Failed to get OVAL info by package name: %v", err)
}