diff --git a/tools/cli/adminCommands.go b/tools/cli/adminCommands.go index 595462150cf..50a20923af3 100644 --- a/tools/cli/adminCommands.go +++ b/tools/cli/adminCommands.go @@ -111,7 +111,7 @@ func AdminShowWorkflow(c *cli.Context) { if err != nil { ErrorAndExit("Failed to serialize history data.", err) } - if err := ioutil.WriteFile(outputFileName, data, 0777); err != nil { + if err := ioutil.WriteFile(outputFileName, data, 0666); err != nil { ErrorAndExit("Failed to export history data file.", err) } } diff --git a/tools/cli/workflowCommands.go b/tools/cli/workflowCommands.go index dc7c4645fec..ee22000774e 100644 --- a/tools/cli/workflowCommands.go +++ b/tools/cli/workflowCommands.go @@ -162,7 +162,7 @@ func showHistoryHelper(c *cli.Context, wid, rid string) { if err != nil { ErrorAndExit("Failed to serialize history data.", err) } - if err := ioutil.WriteFile(outputFileName, data, 0777); err != nil { + if err := ioutil.WriteFile(outputFileName, data, 0666); err != nil { ErrorAndExit("Failed to export history data file.", err) } }