Skip to main content

CI/CD provider

ISSUE-1017MediumPackage Managers and Lockfiles

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.

✗ BeforeReported as: `svc/api/mise.toml` does not declare the required tasks: missing `test` and `scan`.
# svc/api/mise.toml: ❌ required: [lint, test, scan]
[tasks.lint]
run = "golangci-lint run"
✓ AfterAn executable `mise-tasks/test` file would count as well.
# svc/api/mise.toml: ✅
[tasks.lint]
run = "golangci-lint run"
[tasks.test]
run = "go test ./..."
[tasks.scan]
run = "trivy fs ."

💡 Tips

  • Each entry of required matches 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 in task_config.includes. A file there counts only when it is executable. File names follow mise: mise-tasks/db/migrate.sh is db:migrate.
  • What mise run sees without MISE_ENV counts: tasks of a mise.<env>.toml are left out, and task.disable_paths and task.skip drop 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.