Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Aug 18, 2023
1 parent bd9bd08 commit 7e316b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/report/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ func GetOutput(
case flag.ReportDataFlow:
output, err = GetDataflow(report, config, false)
case flag.ReportSecurity:
output, err = reportSecurity(report, config, baseBranchFindings)
var securityOutput *types.Output[security.OutputData]
securityOutput, err = reportSecurity(report, config, baseBranchFindings)
output = &types.Output[map[string][]security.Result]{
Data: securityOutput.Data.Findings,
Dataflow: securityOutput.Dataflow,
Files: securityOutput.Files,
ReportFailed: securityOutput.ReportFailed,
}
case flag.ReportSaaS:
securityOutput, secErr := reportSecurity(report, config, baseBranchFindings)
if secErr != nil {
Expand Down

0 comments on commit 7e316b6

Please sign in to comment.