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 7, 2024
1 parent f82f59d commit b6c11c4
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,
}
inputLabels := []*mondoogql.KeyValueInput{}
for k := range platform.Labels {
Expand Down

0 comments on commit b6c11c4

Please sign in to comment.