chore: logs are written with 0600 instead of 0644

This commit is contained in:
jamesread 2026-03-02 13:48:22 +00:00
parent 235493e471
commit 0c47564652
1 changed files with 2 additions and 2 deletions

View File

@ -1059,7 +1059,7 @@ func saveLogResults(req *ExecutionRequest, filename string) {
} }
filepath := path.Join(dir, filename+".yaml") filepath := path.Join(dir, filename+".yaml")
err = os.WriteFile(filepath, data, 0644) err = os.WriteFile(filepath, data, 0600)
if err != nil { if err != nil {
log.Warnf("%v", err) log.Warnf("%v", err)
@ -1073,7 +1073,7 @@ func saveLogOutput(req *ExecutionRequest, filename string) {
if dir != "" { if dir != "" {
data := req.logEntry.Output data := req.logEntry.Output
filepath := path.Join(dir, filename+".log") filepath := path.Join(dir, filename+".log")
err := os.WriteFile(filepath, []byte(data), 0644) err := os.WriteFile(filepath, []byte(data), 0600)
if err != nil { if err != nil {
log.Warnf("%v", err) log.Warnf("%v", err)