Skip to content

Commit

Permalink
Remove one more directive
Browse files Browse the repository at this point in the history
Change-Id: I3fc8f7a6adfe8ebe15194c2c0f17d8ba3052ca11
Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar committed Sep 18, 2024
1 parent ee62180 commit 5f51dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gosec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func printReport(format string, color bool, rootPaths []string, reportInfo *gose
}

func saveReport(filename, format string, rootPaths []string, reportInfo *gosec.ReportInfo) error {
outfile, err := os.Create(filename) // #nosec G304
outfile, err := os.Create(filename)

Check failure

Code scanning / Golang security checks by gosec

Potential file inclusion via variable Error

Potential file inclusion via variable
if err != nil {
return err
}
Expand Down

0 comments on commit 5f51dc4

Please sign in to comment.