backport ci migration (#5759)

This commit is contained in:
Marko
2020-12-09 16:00:29 +01:00
committed by GitHub
parent 1baf670c60
commit 059d43f626
19 changed files with 430 additions and 2021 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func WriteConfigVals(dir string, vals map[string]string) error {
data += fmt.Sprintf("%s = \"%s\"\n", k, v)
}
cfile := filepath.Join(dir, "config.toml")
return ioutil.WriteFile(cfile, []byte(data), 0666)
return ioutil.WriteFile(cfile, []byte(data), 0600)
}
// RunWithArgs executes the given command with the specified command line args
+1 -1
View File
@@ -27,7 +27,7 @@ func TestWriteFileAtomic(t *testing.T) {
}
defer os.Remove(f.Name())
if err = ioutil.WriteFile(f.Name(), old, 0664); err != nil {
if err = ioutil.WriteFile(f.Name(), old, 0600); err != nil {
t.Fatal(err)
}