core.#WriteFile: default permissions to 0o644
Defaulting to 0o600 makes the file inaccessible to `core.#Exec` actions running with a `user` field. Ideally `#WriteFile` should support user/group in addition to permissions. Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
069227e30c
commit
a05b5c0f83
@ -60,7 +60,7 @@ import "dagger.io/dagger"
|
||||
// Contents to write
|
||||
contents: string
|
||||
// Permissions of the file
|
||||
permissions: *0o600 | int
|
||||
permissions: *0o644 | int
|
||||
// Output filesystem tree
|
||||
output: dagger.#FS
|
||||
}
|
||||
|
Reference in New Issue
Block a user