Skip to content

Commit

Permalink
fix: add nested policy integration type prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Jan 22, 2025
1 parent ac82b95 commit 9c26ed0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jobs/post-install-job/job/migrations/compliance/git_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,18 @@ func (g *GitParser) HandleSingleFramework(framework Framework) error {
for _, it := range c.IntegrationType {
integrationTypes[it] = true
}
if c.Policy != nil {
for _, it := range c.Policy.IntegrationType {
integrationTypes[it] = true
}
}
if c.PolicyID != nil {
if policy, ok := g.controlsPolicies[*c.PolicyID]; ok {
for _, it := range policy.IntegrationType {
integrationTypes[it] = true
}
}
}
}
var integrationTypesList []string
for k, _ := range integrationTypes {
Expand Down

0 comments on commit 9c26ed0

Please sign in to comment.