jdx/mise · error
Config file(s) in are not trusted: Trust them with `mise…
Error message
Config file(s) in {} are not trusted: {}
Trust them with `mise trust`. See https://mise.jdx.dev/cli/trust.html for more information. What it means
Task lookup found config files in the current directory that are not trusted (not in the trust store and not .tool-versions). mise refuses to execute tasks from untrusted config to prevent arbitrary code execution, and lists the untrusted paths.
Solutions
- Run `mise trust` in the project directory
- Review the listed files first if the repo is unfamiliar
- See https://mise.jdx.dev/cli/trust.html for details
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/task/task_list.rs:317 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/2748db56ce35db37.
Report an issue: GitHub.
Appendix: source
Thrown at src/task/task_list.rs:317
let safe_mode = config::Settings::safe_mode();
let config_files = config_files_in_dir(cwd);
let untrusted_configs: Vec<_> = config_files
.iter()
.filter(|p| {
!safe_mode
&& !is_tool_versions_file(p)
&& !is_trusted(&config_trust_root(p))
&& !is_trusted(p)
})
.collect();
if !untrusted_configs.is_empty() {
let paths = untrusted_configs
.iter()
.map(display_path)
.collect::<Vec<_>>()
.join(", ");
bail!(
"Config file(s) in {} are not trusted: {}\nTrust them with `mise trust`. See https://mise.jdx.dev/cli/trust.html for more information.",
display_path(cwd),
paths
);
}
}
if let Some(task) = make_task_executable(config, name, task_context).await? {
return Ok(Some(task));
}
// Check if there are non-executable files in task include directories
if let Some(cwd) = &*dirs::CWD {
let includes = config::task_includes_for_dir(cwd, &config.config_files)?;
let excludes = config::task_excludes_for_dir(cwd, &config.config_files)?;
let non_exec_files = find_non_executable_task_files(&includes, &excludes);
// The remedy differs by platform and `make_executable_hint` is the only thing that
// knows how, so it gets one file to name rather than the list. The count and theView on GitHub (pinned to 533346cc37)