fix(mise): enable safe mode when reading app config (#686)

* fix(mise): enable safe mode when reading app config

Harden host-side version resolution by loading app mise config in safe mode, keeping it inert during analysis.

* chore(mise): tighten safe-mode comment
This commit is contained in:
Jake Runzer
2026-08-11 13:21:47 -04:00
committed by GitHub
parent 3e6dfd9a7b
commit 74abc8b3fc
+2
View File
@@ -192,6 +192,8 @@ func (m *Mise) GetCurrentList(appDir string) (string, error) {
enabledIdiomaticEnv,
// MISE_PARANOID enables stricter security validation
"MISE_PARANOID=1",
// Safe mode keeps the app's own mise config inert (no code execution or host env mutation) while still reporting versions
"MISE_SAFE=1",
}, "--cd", appDir, "list", "--current", "--json")
}