Skip to content

Commit

Permalink
Remove nosec directive to test the sarif report upload
Browse files Browse the repository at this point in the history
Change-Id: I21c408df91c0820bc7579e8fd70fff533e8f720b
Signed-off-by: Cosmin Cojocar <[email protected]>
  • Loading branch information
ccojocar committed Sep 18, 2024
1 parent a836898 commit ee62180
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 @@ -309,7 +309,7 @@ func saveReport(filename, format string, rootPaths []string, reportInfo *gosec.R
if err != nil {
return err
}
defer outfile.Close() // #nosec G307
defer outfile.Close()
err = report.CreateReport(outfile, format, false, rootPaths, reportInfo)
if err != nil {
return err
Expand Down

0 comments on commit ee62180

Please sign in to comment.