- Issues
- ISSUE-1017
CI/CD provider
mise: a project misses required tasks
Control:CTRL-1001mise-en-place
📋 What is this?
A mise project (a directory holding a mise config) does not declare the tasks mise.tasks.required asks for. Tasks count from [tasks] tables, TOML task files, executable files of the task directories, and parent directories, as mise run sees them.
⚠️ Impact
When CI runs mise run <task>, the tasks the organization expects (lint, test, a security scan) are the steps that actually run, so a project without them skips those steps.
🔧 How to fix
Declare the missing tasks in the project's mise.toml ([tasks.lint]) or as executable files in mise-tasks/, or list the project's path in exemptPaths if it is not meant to run them.
# svc/api/mise.toml: ❌ required: [lint, test, scan][tasks.lint]run = "golangci-lint run"# svc/api/mise.toml: ✅[tasks.lint]run = "golangci-lint run"
[tasks.test]run = "go test ./..."
[tasks.scan]run = "trivy fs ."💡 Tips
- Each entry of
requiredmatches a task name or alias, globs allowed (lint:*). One finding per project, listing every task it misses. - Task directories are
mise-tasks/,.mise-tasks/,.mise/tasks/,.config/mise/tasks/,mise/tasks/and the paths intask_config.includes. A file there counts only when it is executable. File names follow mise:mise-tasks/db/migrate.shisdb:migrate. - What
mise runsees withoutMISE_ENVcounts: tasks of amise.<env>.tomlare left out, andtask.disable_pathsandtask.skipdrop the tasks they name. - Tasks from a remote (
git::,oci::,zip::), templated or out-of-repository include, or an include over 20,000 files, are not read: they never satisfy the requirement, and the finding names those includes. - The tasks check is off by default. It does not check that the workflow actually runs the tasks.
⚙️ Configure this control
With the CLI alone: set it in your configuration file. Every field and default is in the controls index, CTRL-1001.
mise: a project misses required tasks
Control:CTRL-1001mise-en-place
📋 What is this?
A mise project (a directory holding a mise config) does not declare the tasks mise.tasks.required asks for. Tasks count from [tasks] tables, TOML task files, executable files of the task directories, and parent directories, as mise run sees them.
⚠️ Impact
When CI runs mise run <task>, the tasks the organization expects (lint, test, a security scan) are the steps that actually run, so a project without them skips those steps.
🔧 How to fix
Declare the missing tasks in the project's mise.toml ([tasks.lint]) or as executable files in mise-tasks/, or list the project's path in exemptPaths if it is not meant to run them.
# svc/api/mise.toml: ❌ required: [lint, test, scan][tasks.lint]run = "golangci-lint run"# svc/api/mise.toml: ✅[tasks.lint]run = "golangci-lint run"
[tasks.test]run = "go test ./..."
[tasks.scan]run = "trivy fs ."💡 Tips
- Each entry of
requiredmatches a task name or alias, globs allowed (lint:*). One finding per project, listing every task it misses. - Task directories are
mise-tasks/,.mise-tasks/,.mise/tasks/,.config/mise/tasks/,mise/tasks/and the paths intask_config.includes. A file there counts only when it is executable. File names follow mise:mise-tasks/db/migrate.shisdb:migrate. - What
mise runsees withoutMISE_ENVcounts: tasks of amise.<env>.tomlare left out, andtask.disable_pathsandtask.skipdrop the tasks they name. - Tasks from a remote (
git::,oci::,zip::), templated or out-of-repository include, or an include over 20,000 files, are not read: they never satisfy the requirement, and the finding names those includes. - The tasks check is off by default. It does not check that the workflow actually runs the tasks.
⚙️ Configure this control
With the CLI alone: set it in your configuration file. Every field and default is in the controls index, CTRL-1001.