diff options
-rw-r--r-- | script/global.d.lua | 4 | ||||
-rw-r--r-- | script/plugin.lua | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/script/global.d.lua b/script/global.d.lua index cee9e01b..40329996 100644 --- a/script/global.d.lua +++ b/script/global.d.lua @@ -90,3 +90,7 @@ SOCKET = 0 -- Allowing the use of the root directory or home directory as the workspace FORCE_ACCEPT_WORKSPACE = false + +-- Trust all plugins that are being loaded by workspace config files. +-- This is potentially unsafe for normal use and meant for usage in CI environments only. +TRUST_ALL_PLUGINS = false diff --git a/script/plugin.lua b/script/plugin.lua index 35a1da5b..26211a42 100644 --- a/script/plugin.lua +++ b/script/plugin.lua @@ -73,6 +73,9 @@ end ---@async ---@param scp scope local function checkTrustLoad(scp) + if TRUST_ALL_PLUGINS then + return true + end local pluginPath = scp:get('pluginPath') local filePath = LOGPATH .. '/trusted' local trusted = util.loadFile(filePath) |