Skip to content

Commit 118b337

Browse files
committed
chore: working code for fixed version
1 parent 6f0710c commit 118b337

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/falcon/extractor.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type UserDevice struct {
3838
}
3939

4040
type UserDeviceFinding struct {
41+
FixedVersion string
4142
ProductName string
4243
CveID string
4344
CveSeverity string
@@ -368,14 +369,17 @@ func GetMessages(config *config.Config, ctx context.Context) (results map[string
368369
CveID: *vuln.Cve.ID,
369370
CveSeverity: vuln.Cve.Severity,
370371
TimestampFound: *vuln.CreatedTimestamp,
371-
DaysOpen: uint(math.Ceil(time.Since(createdTime).Hours() / 24)),
372+
// FixedVersion: "", -> set later
373+
DaysOpen: uint(math.Ceil(time.Since(createdTime).Hours() / 24)),
372374
}
373375

374376
for _, mitigation := range vuln.Remediation.Entities {
375377
if strings.HasPrefix(strings.ToLower(*mitigation.Action), "no fix available for ") {
376378
continue
377379
}
378380

381+
logrus.Fatalf("%+v", mitigation)
382+
// TODO: remove
379383
deviceFinding.Mitigations = appendUnique(deviceFinding.Mitigations, []string{*mitigation.Action})
380384
}
381385

0 commit comments

Comments
 (0)