Skip to content

Commit

Permalink
Pass correct output file (#1391)
Browse files Browse the repository at this point in the history
Previously, the wrong path would get passed, and the template file would
get truncated.

Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode authored Jul 17, 2023
1 parent 5a8ea73 commit 43bcf30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/grype/cli/legacy/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ func startWorker(userInput string, failOnSeverity *vulnerability.Severity) <-cha
defer close(errs)
defer bus.Exit()

// TODO: appConfig.File
writer, err := format.MakeScanResultWriter(appConfig.Outputs, appConfig.OutputTemplateFile, format.PresentationConfig{
writer, err := format.MakeScanResultWriter(appConfig.Outputs, appConfig.File, format.PresentationConfig{
TemplateFilePath: appConfig.OutputTemplateFile,
ShowSuppressed: appConfig.ShowSuppressed,
})
Expand Down

0 comments on commit 43bcf30

Please sign in to comment.