File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ type UserDevice struct {
3838}
3939
4040type 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
You can’t perform that action at this time.
0 commit comments