Skip to content

Commit

Permalink
nosec G306 for 644 file
Browse files Browse the repository at this point in the history
  • Loading branch information
chadpatel committed Dec 17, 2024
1 parent 5986b7f commit 6c4f2af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tool/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func RunDownloader(mode, downloadLocation, outputDir, inputConfig, multiConfig s

if multiConfig != "remove" {
outputPath := filepath.Join(outputDir, outputFilePath+constants.FileSuffixTmp)
// #nosec G306 - customers may need to be able to read the config file that the downloader downloaded for them
if err := os.WriteFile(outputPath, []byte(config), 0644); err != nil {
return fmt.Errorf("failed to write the json file %v: %v", outputPath, err)
}
Expand Down

0 comments on commit 6c4f2af

Please sign in to comment.