Skip to content

Commit

Permalink
core.#WriteFile: default permissions to 0o644
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aluzzardi committed Apr 15, 2022
1 parent 069227e commit a05b5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dagger.io/dagger/core/fs.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a05b5c0

Please sign in to comment.