From fa0edb009e87f7e2ec7031a530409c418fd6a1d3 Mon Sep 17 00:00:00 2001 From: Jon Massey Date: Mon, 20 May 2024 08:40:26 +0100 Subject: [PATCH] Add read permission to opensafely/server-instructions This gives the auto-generated PAT used for git operations within this codespace read permissions to the server-instructions repo which contains the stata license file needed to run stata actions --- .devcontainer/devcontainer.json | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2aca111..a92ae75 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -27,6 +27,15 @@ }, // Configure tool-specific properties. "customizations": { + "codespaces": { + "repositories": { + "opensafely/server-instructions": { + "permissions": { + "contents": "read" + } + } + } + }, "vscode": { "extensions": [ "ms-python.python", @@ -38,7 +47,9 @@ "files.autoSave": "afterDelay", "files.autoSaveDelay": 1000, "git.autofetch": true, - "python.analysis.extraPaths": [".devcontainer/ehrql-main/"], + "python.analysis.extraPaths": [ + ".devcontainer/ehrql-main/" + ], "python.defaultInterpreterPath": "/opt/venv/bin/python", "python.terminal.activateEnvInCurrentTerminal": true, "python.terminal.activateEnvironment": true, @@ -51,4 +62,4 @@ "remoteEnv": { "MAX_WORKERS": "2" } -} +} \ No newline at end of file