Skip to content

Commit

Permalink
fix: issue with saas finding embed
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Aug 28, 2023
1 parent 3b23967 commit 8f77983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/report/output/saas/saas.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func GetReport(reportData *types.ReportData, config settings.Config, ensureMeta
saasFindingsBySeverity := make(map[string][]saas.SaasFinding)
for _, severity := range maps.Keys(reportData.FindingsBySeverity) {
for _, finding := range reportData.FindingsBySeverity[severity] {
saasFindingsBySeverity[severity] = append(saasFindingsBySeverity[severity], saas.SaasFinding{Finding: &finding})
saasFindingsBySeverity[severity] = append(saasFindingsBySeverity[severity], saas.SaasFinding{Finding: finding})
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/report/output/saas/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ type BearerReport struct {
}

type SaasFinding struct {
Finding *securitytypes.Finding
securitytypes.Finding
// add any extra data to send to SaaS
}

0 comments on commit 8f77983

Please sign in to comment.