diff --git a/tests/e2e/io.go b/tests/e2e/io.go index 81160d4aace..80353bd5684 100644 --- a/tests/e2e/io.go +++ b/tests/e2e/io.go @@ -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 }