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:
Andrea Luzzardi 2022-04-15 12:50:32 -07:00
parent 069227e30c
commit a05b5c0f83

View File

@ -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
}