mirror of
https://github.com/securego/gosec.git
synced 2026-01-15 01:33:41 +08:00
Add os.Create to the readfile rule (#761)
This commit is contained in:
@@ -246,7 +246,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)
|
||||
outfile, err := os.Create(filename) //#nosec G304
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user