Skip to content

Commit

Permalink
🐛 Provide platform family for vulnmgmt
Browse files Browse the repository at this point in the history
This is needed to determine the applicable app vulns.

Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker committed Mar 1, 2024
1 parent 7dc1124 commit ffd0c3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions providers/os/resources/vulnmgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,15 @@ func (v *mqlVulnmgmt) getIncognitoReport(mondooClient *gql.MondooClient) (*gql.V
}
}

family := []*mondoogql.String{}
for _, f := range platform.Family {
family = append(family, mondoogql.NewStringPtr(mondoogql.String(f)))
}
inputPlatform := mondoogql.PlatformInput{
Name: mondoogql.NewStringPtr(mondoogql.String(platform.Name)),
Release: mondoogql.NewStringPtr(mondoogql.String(platform.Version)),
Build: mondoogql.NewStringPtr(mondoogql.String(platform.Build)),
Family: &family,

Check failure on line 276 in providers/os/resources/vulnmgmt.go

View workflow job for this annotation

GitHub Actions / go-bench

unknown field Family in struct literal of type mondoogql.PlatformInput
}
inputLabels := []*mondoogql.KeyValueInput{}
for k := range platform.Labels {
Expand Down

0 comments on commit ffd0c3e

Please sign in to comment.