From a05b5c0f83a70ced5c641c5fef51f2f89fb8d3f7 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 15 Apr 2022 12:50:32 -0700 Subject: [PATCH] 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 --- pkg/dagger.io/dagger/core/fs.cue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dagger.io/dagger/core/fs.cue b/pkg/dagger.io/dagger/core/fs.cue index b4d0d614..2866df50 100644 --- a/pkg/dagger.io/dagger/core/fs.cue +++ b/pkg/dagger.io/dagger/core/fs.cue @@ -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 }