Skip to Content
Workflows

Create and Manage Workflows

Create a Mondoo workflow from a template, change its inputs, activate it, see every run, and deactivate or archive it.

You create every workflow from a template that Mondoo provides. To learn what each template does, read Automate Security Operations with Workflows.

To create, change, or run workflows, you need the Editor or Owner role in the space or organization, or another role with this permission, such as Workflow Manager.

The steps on this page are the same in a space and in an organization. Most templates are made for spaces. To learn which events an organization workflow handles, read Space and organization workflows.

Create a workflow from a template

  1. In the Mondoo App, navigate to the space or organization where you want the workflow.

  2. In the side navigation bar, select Workflows.

  3. Select CREATE.

    Mondoo lists the available templates, with the category and a description of each. To narrow the list, type in the Search templates box.

    Workflow templates in the Mondoo App

  4. Select a template. Mondoo shows a preview of the steps the workflow runs.

    Preview of the Integration Failure Alert (Email) template's steps

  5. Select CREATE WORKFLOW.

  6. Fill in the values the template needs, such as the email address or webhook URL that receives an alert, or the ticketing integration that files a ticket. Then select CREATE WORKFLOW.

    The dialog that asks for a template's values before Mondoo creates the workflow

    Mondoo creates the workflow and opens it. A new workflow is inactive: it doesn't run until you activate it.

  7. Select ACTIVATE.

    A new workflow with the banner This workflow is inactive and an Activate button

The workflow now shows the status Active in the Workflows list. A new workflow can take up to a minute to start responding to events.

The Workflows list in a space, with each workflow's trigger, version, and status

Change a workflow's inputs

You can change the values you provided when you created a workflow, for example to send alerts to a different channel.

  1. In the space or organization, select Workflows and open the workflow.

  2. Select the step whose value you want to change, for example Send the alert or POST to the webhook.

  3. In the panel that opens, change the value.

    The settings panel of a workflow's Send the alert step, with the recipient in the To field

  4. Select Save (the disk icon).

The next run uses the new value.

Run a workflow on an asset or findings

A workflow that's built to receive an asset or a selection of findings can run on demand, on the asset or findings you choose. None of the templates available today creates such a workflow: the workflows you create from them run when something happens, and the workflows Mondoo manages run when a feature needs them. If your space has no workflow that runs on demand, Mondoo shows No workflows available when you start one from the places below, and names the values a workflow must accept to run there.

You can start an on-demand workflow from these places in a space:

WhereHow to start the workflowWhat the workflow gets
An asset's page, or a CI/CD job's pageSelect ACTIONS > Run WorkflowThe asset
An asset's Findings tabSelect one or more findings, then select RUN WORKFLOWThe asset and selected findings
A finding on an assetSelect ACTIONS > Run WorkflowThe asset and the finding
The space's findings list, or a Supply Chain page's findings listSelect one or more findings, then select RUN WORKFLOWThe selected findings

Mondoo lists the space's active workflows that can run on what you selected. Select one. If the workflow needs other values, Mondoo asks for them: values that come from your selection are filled in and marked Auto-filled from current context. Fill in the rest and select RUN. When the workflow starts, Mondoo confirms it. To follow the run, select View run.

See workflow runs

In the space or organization, select Workflows > Executions. Mondoo lists every run of every workflow there, with its status. To find a run, search or filter by status.

Select a run to see the workflow's steps. A finished step has a check mark.

A completed run selected in Executions, with a check mark on each finished step

Select a step to see what it did, for example who an alert went to or the response a webhook returned. If a run failed, Mondoo shows the step that failed and its error.

A finished step of a run, marked Completed, with the address the alert went to

Update a workflow to the latest template version

When Mondoo improves a template, a workflow you created from it keeps running its current version until you update it.

  1. In the space or organization, select Workflows and open the workflow.

  2. Select ACTIONS. If a newer version of the template is available, the menu shows Update to latest version (update available). Select it.

    The Actions menu of a workflow, with Update to latest version near the bottom

The workflow keeps the values you provided. Mondoo saves the previous version before it updates the workflow, so you can look at it again under ACTIONS > Version History.

Workflows that Mondoo manages

Mondoo creates some workflows for you, such as the delivery workflows that carry fixes through your endpoint management and EDR platforms, and the Fleet Scan workflow that runs your integrations' fleet scans. They're listed in Workflows and their runs in Executions, like any other workflow. Some are marked Read-only: you can open them and follow their runs, but only Mondoo can change, run, or archive them.

Deactivate or archive a workflow

In the space or organization, select Workflows. In the workflow's row, select the status in the Status column to open its menu:

  • Deactivate stops the workflow from running. You can activate it again later.
  • Archive removes the workflow from the list.

The menu that opens from a workflow's status, with Deactivate, Duplicate, Download YAML, and Archive

You can also deactivate or archive a workflow from its ACTIONS menu when you have it open.

Last updated on

On this page