Skip to content

Commit

Permalink
fix: add policy integration check for frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Jan 22, 2025
1 parent 7e7ed7a commit 61f4676
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 @@ -581,6 +581,18 @@ func (g *GitParser) HandleBenchmarks(benchmarks []Benchmark) 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 61f4676

Please sign in to comment.