From 3bf0dac51af7b9f7fd56d5da39d12920517264f6 Mon Sep 17 00:00:00 2001
From: Lansana DIOMANDE <ldiomande@takima.fr>
Date: Mon, 16 May 2022 11:21:05 +0200
Subject: [PATCH] refactor: add readonly mode on bind mount of devcontainer

---
 deadlock-plugins/deadlock-extension/src/core/mission.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/deadlock-plugins/deadlock-extension/src/core/mission.ts b/deadlock-plugins/deadlock-extension/src/core/mission.ts
index fc4c4b93..22f0acb0 100644
--- a/deadlock-plugins/deadlock-extension/src/core/mission.ts
+++ b/deadlock-plugins/deadlock-extension/src/core/mission.ts
@@ -71,8 +71,8 @@ export default class Mission {
           extensions: ['Deadlock.deadlock-coding'],
           remoteUser: 'deadlock',
           mounts: [
-            `source=${userSshKeyFolderPath},target=/tmp/.ssh,type=bind,consistency=cached`,
-            `source=${this.userMissionConfigPath},target=/home/config/,type=bind,consistency=cached`,
+            `source=${userSshKeyFolderPath},target=/tmp/.ssh,type=bind,consistency=cached,readonly`,
+            `source=${this.userMissionConfigPath},target=/home/config/,type=bind,consistency=cached,readonly`,
           ],
           userEnvProbe: 'interactiveShell',
           settings: {
-- 
GitLab