From 372b7a25261ed2e0ad9bf285ddafa924c6f7e3e7 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 6 Apr 2024 22:49:42 +0200 Subject: [PATCH] feat: add permissions Signed-off-by: kjuulh --- crates/cuddle-ci/src/rust_service/dagger_bin.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/cuddle-ci/src/rust_service/dagger_bin.rs b/crates/cuddle-ci/src/rust_service/dagger_bin.rs index b1746ad..3a63b4a 100644 --- a/crates/cuddle-ci/src/rust_service/dagger_bin.rs +++ b/crates/cuddle-ci/src/rust_service/dagger_bin.rs @@ -45,7 +45,14 @@ impl DaggerMiddleware for DaggerBin { .file("/bin/dagger"); Ok(container - .with_file("/bin/dagger", dagger_bin) + .with_file_opts( + "/bin/dagger", + dagger_bin, + dagger_sdk::ContainerWithFileOpts { + owner: None, + permissions: Some(0755), + }, + ) .with_exec(vec!["/bin/dagger", "version"])) } }