{"record":{"id":"2748db56ce35db37","repo":"jdx/mise","slug":"config-file-s-in-are-not-trusted-trust-the","errorCode":null,"errorMessage":"Config file(s) in {} are not trusted: {}\nTrust them with `mise trust`. See https://mise.jdx.dev/cli/trust.html for more information.","messagePattern":"Config file\\(s\\) in (.+?) are not trusted: (.+?)\nTrust them with `mise trust`\\. See https://mise\\.jdx\\.dev/cli/trust\\.html for more information\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/task/task_list.rs","lineNumber":317,"sourceCode":"            let safe_mode = config::Settings::safe_mode();\n            let config_files = config_files_in_dir(cwd);\n            let untrusted_configs: Vec<_> = config_files\n                .iter()\n                .filter(|p| {\n                    !safe_mode\n                        && !is_tool_versions_file(p)\n                        && !is_trusted(&config_trust_root(p))\n                        && !is_trusted(p)\n                })\n                .collect();\n\n            if !untrusted_configs.is_empty() {\n                let paths = untrusted_configs\n                    .iter()\n                    .map(display_path)\n                    .collect::<Vec<_>>()\n                    .join(\", \");\n                bail!(\n                    \"Config file(s) in {} are not trusted: {}\\nTrust them with `mise trust`. See https://mise.jdx.dev/cli/trust.html for more information.\",\n                    display_path(cwd),\n                    paths\n                );\n            }\n        }\n\n        if let Some(task) = make_task_executable(config, name, task_context).await? {\n            return Ok(Some(task));\n        }\n\n        // Check if there are non-executable files in task include directories\n        if let Some(cwd) = &*dirs::CWD {\n            let includes = config::task_includes_for_dir(cwd, &config.config_files)?;\n            let excludes = config::task_excludes_for_dir(cwd, &config.config_files)?;\n            let non_exec_files = find_non_executable_task_files(&includes, &excludes);\n            // The remedy differs by platform and `make_executable_hint` is the only thing that\n            // knows how, so it gets one file to name rather than the list. The count and the","sourceCodeStart":299,"sourceCodeEnd":335,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/task/task_list.rs#L299-L335","documentation":"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.","triggerScenarios":"Thrown at src/task/task_list.rs:317 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}