mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
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:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user