Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 committed Dec 19, 2023
1 parent b0b1aec commit 7f88b26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func copyFile(src, dst string) (int64, error) { //nolint:unparam
}

// writeFile write a byte slice into a file path
// create the file if it doesn't exist
// NOTE: this file can be write and read by everyone
func writeFile(path string, body []byte) error {
return os.WriteFile(path, body, 0o600)
return os.WriteFile(path, body, 0o666) //nolint:gosec
}

0 comments on commit 7f88b26

Please sign in to comment.