chore: logs are written with 0600 instead of 0644
This commit is contained in:
parent
235493e471
commit
0c47564652
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue