Skip to main content
Version: v0.19.0

playbook.definition

Title: playbook.definition

Typecombining
Additional propertiesNot allowed

Description: Schema for regis-cli playbook definition files (YAML or JSON).

PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ nameNostringNo-Display name of the playbook.
- descriptionNostringNo-Human-readable description of what this playbook evaluates.
- slugNostringNo-Short identifier used for HTML report filename generation.
- linksNoarray of objectNo-Optional custom links to display as actions for this playbook.
- pagesNoarrayNo-List of playbook pages. Each page groups sections.
- sectionsNoarrayNo-List of playbook sections. Each section groups scorecards, levels, and display preferences.
- sidebarNoobjectNo-Optional sidebar navigation configuration.
- integrationsNoobjectNo-Optional third-party platform integrations (e.g. GitLab, GitHub).
Any of(Option)
item 0
item 1

1. Property item 0

Typeobject
Additional propertiesAny type: allowed

1.1. The following properties are required

  • sections

2. Property item 1

Typeobject
Additional propertiesAny type: allowed

2.1. The following properties are required

  • pages

3. Required Property name

Typestring

Description: Display name of the playbook.

4. Optional Property description

Typestring

Description: Human-readable description of what this playbook evaluates.

5. Optional Property slug

Typestring

Description: Short identifier used for HTML report filename generation.

Typearray of object

Description: Optional custom links to display as actions for this playbook.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
links items-
Typeobject
Additional propertiesAny type: allowed
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ labelNostringNo-Display label for the link.
+ urlNostringNo-URL template which can use {metadata[key]} placeholders or Jinja2 syntax.
- conditionNoobjectNoIn jsonlogic.schema.jsonOptional JsonLogic expression to determine if the link should be displayed.

6.1.1. Property label

Typestring

Description: Display label for the link.

6.1.2. Property url

Typestring

Description: URL template which can use {metadata[key]} placeholders or Jinja2 syntax.

6.1.3. Property condition

Typeobject
Additional propertiesAny type: allowed
Defined injsonlogic.schema.json

Description: Optional JsonLogic expression to determine if the link should be displayed.

7. Optional Property pages

Typearray

Description: List of playbook pages. Each page groups sections.

Array restrictions
Min items1
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
pageA playbook page containing sections.

7.1. page

Typeobject
Additional propertiesNot allowed
Defined in#/$defs/page

Description: A playbook page containing sections.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ titleNostringNo-Display name of the page.
- slugNostringNo-Short identifier used for HTML report filename generation. If not provided, it falls back to the playbook slug.
+ sectionsNoarrayNo-List of playbook sections.

7.1.1. Property title

Typestring

Description: Display name of the page.

7.1.2. Property slug

Typestring

Description: Short identifier used for HTML report filename generation. If not provided, it falls back to the playbook slug.

7.1.3. Property sections

Typearray

Description: List of playbook sections.

Array restrictions
Min items1
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
sectionA playbook section containing scorecards, optional levels, and display preferences.
7.1.3.1. section
Typeobject
Additional propertiesNot allowed
Defined in#/$defs/section

Description: A playbook section containing scorecards, optional levels, and display preferences.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
- nameNostringNo-Display name of the section.
- hintNostringNo-Optional informative text displayed below the section name.
- displayNoobjectNoIn #/$defs/displayRendering preferences for the section.
- levelsNoarrayNo-Priority/severity levels used to group scorecards. Built-in fallback order exists for bronze, silver, gold.
- scorecardsNoarrayNo-Evaluation scorecards with JsonLogic conditions.
- widgetsNoarrayNo-KPI and Template widgets displayed in the section.
- conditionNoobjectNo-Optional jsonLogic expression to conditionally display this section. If it evaluates to falsy, the section is hidden.
7.1.3.1.1. Property name
Typestring

Description: Display name of the section.

7.1.3.1.2. Property hint
Typestring

Description: Optional informative text displayed below the section name.

7.1.3.1.3. Property display
Typeobject
Additional propertiesNot allowed
Defined in#/$defs/display

Description: Rendering preferences for the section.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
- analyzersNoarray of stringNo-List of analyzer names whose output should be embedded in this section.
- widgetsNoarrayNo-KPI widgets displayed in the section header.
7.1.3.1.3.1. Property analyzers
Typearray of string

Description: List of analyzer names whose output should be embedded in this section.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
analyzers items-
7.1.3.1.3.1.1. analyzers items
Typestring
7.1.3.1.3.2. Property widgets
Typearray

Description: KPI widgets displayed in the section header.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
widgetA key-value widget displaying a metric from the analysis report, or a custom HTML template widget.
7.1.3.1.3.2.1. widget
Typeobject
Additional propertiesNot allowed
Defined in#/$defs/widget

Description: A key-value widget displaying a metric from the analysis report, or a custom HTML template widget.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
- labelNostringNo-Display label for the widget.
- valueNostringNo-Dot-separated path into the report data, e.g. 'results.trivy.critical_count'.
- urlNostringNo-Optional URL for the widget. Supports Jinja2 templates.
- iconNostringNo-Emoji or icon displayed alongside the widget.
- templateNostringNo-Path to a Jinja2 HTML template within the theme, e.g. analyzers/trivy/table.html.
- optionsNoobjectNo-Arbitrary options passed directly to the Jinja2 template.
- conditionNoobjectNo-Optional jsonLogic expression to conditionally display this widget. If it evaluates to falsy, the widget is hidden.
7.1.3.1.3.2.1.1. Property label
Typestring

Description: Display label for the widget.

7.1.3.1.3.2.1.2. Property value
Typestring

Description: Dot-separated path into the report data, e.g. 'results.trivy.critical_count'.

7.1.3.1.3.2.1.3. Property url
Typestring

Description: Optional URL for the widget. Supports Jinja2 templates.

7.1.3.1.3.2.1.4. Property icon
Typestring

Description: Emoji or icon displayed alongside the widget.

7.1.3.1.3.2.1.5. Property template
Typestring

Description: Path to a Jinja2 HTML template within the theme, e.g. analyzers/trivy/table.html.

7.1.3.1.3.2.1.6. Property options
Typeobject
Additional propertiesAny type: allowed

Description: Arbitrary options passed directly to the Jinja2 template.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
- titleNostringNo-Optional title for the widget. If provided, the widget will be displayed with a header.
- collapsedNobooleanNo-If true, the widget will be collapsible and closed by default.
- alignNoenum (of string)No-Text alignment for the widget (left, center, or right)
- subvalueNostringNo-Additional text/value to display below the main value. Follows identical resolution logic as value.
- classNostringNo-Additional CSS class(es) to apply to the widget container.
7.1.3.1.3.2.1.6.1. Property title
Typestring

Description: Optional title for the widget. If provided, the widget will be displayed with a header.

7.1.3.1.3.2.1.6.2. Property collapsed
Typeboolean
Defaultfalse

Description: If true, the widget will be collapsible and closed by default.

7.1.3.1.3.2.1.6.3. Property align
Typeenum (of string)
Default"left"

Description: Text alignment for the widget (left, center, or right)

Must be one of:

  • "left"
  • "center"
  • "right"
7.1.3.1.3.2.1.6.4. Property subvalue
Typestring

Description: Additional text/value to display below the main value. Follows identical resolution logic as value.

7.1.3.1.3.2.1.6.5. Property class
Typestring
Default""

Description: Additional CSS class(es) to apply to the widget container.

7.1.3.1.3.2.1.7. Property condition
Typeobject
Additional propertiesAny type: allowed

Description: Optional jsonLogic expression to conditionally display this widget. If it evaluates to falsy, the widget is hidden.

7.1.3.1.4. Property levels
Typearray

Description: Priority/severity levels used to group scorecards. Built-in fallback order exists for bronze, silver, gold.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
levelA priority/severity level used to group and summarise scorecards.
7.1.3.1.4.1. level
Typeobject
Additional propertiesNot allowed
Defined in#/$defs/level

Description: A priority/severity level used to group and summarise scorecards.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ nameNostringNo-Level identifier referenced by scorecards.
- labelNostringNo-Human-readable display label.
- orderNointegerNo-Sort order (lower value = higher priority). Built-in defaults: bronze=1, silver=2, gold=3.
7.1.3.1.4.1.1. Property name
Typestring

Description: Level identifier referenced by scorecards.

7.1.3.1.4.1.2. Property label
Typestring

Description: Human-readable display label.

7.1.3.1.4.1.3. Property order
Typeinteger

Description: Sort order (lower value = higher priority). Built-in defaults: bronze=1, silver=2, gold=3.

7.1.3.1.5. Property scorecards
Typearray

Description: Evaluation scorecards with JsonLogic conditions.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
scorecardAn evaluation scorecard with a JsonLogic condition.
7.1.3.1.5.1. scorecard
Typeobject
Additional propertiesNot allowed
Defined in#/$defs/scorecard

Description: An evaluation scorecard with a JsonLogic condition.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ nameNostringNo-Unique identifier for the scorecard.
- titleNostringNo-Human-readable title. Defaults to name if omitted.
- levelNostringNo-Level this scorecard belongs to. Must match a level name defined in the section.
- tagsNoarray of stringNo-Arbitrary tags for filtering or grouping.
+ conditionNoobjectNo-JsonLogic expression evaluated against the flattened analysis report. Variables use dot-paths, e.g. {"var": "results.trivy.critical_count"}. Supported operators: ==, !=, >, >=, <, <=, in, !, and, or.
7.1.3.1.5.1.1. Property name
Typestring

Description: Unique identifier for the scorecard.

7.1.3.1.5.1.2. Property title
Typestring

Description: Human-readable title. Defaults to name if omitted.

7.1.3.1.5.1.3. Property level
Typestring

Description: Level this scorecard belongs to. Must match a level name defined in the section.

7.1.3.1.5.1.4. Property tags
Typearray of string

Description: Arbitrary tags for filtering or grouping.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
tags items-
7.1.3.1.5.1.4.1. tags items
Typestring
7.1.3.1.5.1.5. Property condition
Typeobject
Additional propertiesAny type: allowed

Description: JsonLogic expression evaluated against the flattened analysis report. Variables use dot-paths, e.g. {"var": "results.trivy.critical_count"}. Supported operators: ==, !=, >, >=, <, <=, in, !, and, or.

7.1.3.1.6. Property widgets
Typearray

Description: KPI and Template widgets displayed in the section.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
widgetA key-value widget displaying a metric from the analysis report, or a custom HTML template widget.
7.1.3.1.6.1. widget
Typeobject
Additional propertiesNot allowed
Same definition aspages_items_sections_items_display_widgets_items

Description: A key-value widget displaying a metric from the analysis report, or a custom HTML template widget.

7.1.3.1.7. Property condition
Typeobject
Additional propertiesAny type: allowed

Description: Optional jsonLogic expression to conditionally display this section. If it evaluates to falsy, the section is hidden.

8. Optional Property sections

Typearray

Description: List of playbook sections. Each section groups scorecards, levels, and display preferences.

Array restrictions
Min items1
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
sectionA playbook section containing scorecards, optional levels, and display preferences.

8.1. section

Typeobject
Additional propertiesNot allowed
Same definition aspages_items_sections_items

Description: A playbook section containing scorecards, optional levels, and display preferences.

9. Optional Property sidebar

Typeobject
Additional propertiesAny type: allowed

Description: Optional sidebar navigation configuration.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
- sectionsNoarray of objectNo--
- linksNoarray of objectNo--

9.1. Optional Property sections

Typearray of object
Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
sections items-

9.1.1. sections items

Typeobject
Additional propertiesAny type: allowed
PropertyPatternTypeDeprecatedDefinitionTitle/Description
- titleNostringNo-Title of the sidebar section.
+ linksNoarray of objectNo-List of links in this section.
9.1.1.1. Property title
Typestring

Description: Title of the sidebar section.

Typearray of object

Description: List of links in this section.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
links items-
Typeobject
Additional propertiesAny type: allowed
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ labelNostringNo-Display label.
+ urlNostringNo-Target URL.
- iconNostringNo-Icon name or emoji.
9.1.1.2.1.1. Property label
Typestring

Description: Display label.

9.1.1.2.1.2. Property url
Typestring

Description: Target URL.

9.1.1.2.1.3. Property icon
Typestring

Description: Icon name or emoji.

Typearray of object
Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
links items-
Typeobject
Additional propertiesAny type: allowed
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ labelNostringNo-Display label.
+ urlNostringNo-Target URL.
- iconNostringNo-Icon name or emoji.
9.2.1.1. Property label
Typestring

Description: Display label.

9.2.1.2. Property url
Typestring

Description: Target URL.

9.2.1.3. Property icon
Typestring

Description: Icon name or emoji.

10. Optional Property integrations

Typeobject
Additional propertiesAny type: allowed

Description: Optional third-party platform integrations (e.g. GitLab, GitHub).

PropertyPatternTypeDeprecatedDefinitionTitle/Description
- gitlabNoobjectNo--

10.1. Optional Property gitlab

Typeobject
Additional propertiesAny type: allowed
PropertyPatternTypeDeprecatedDefinitionTitle/Description
- badgesNoarray of stringNo-List of badge slugs to be imported as GitLab Merge Request labels.
- checklistNoarrayNo-(Deprecated) Single checklist items added as checkboxes to the Merge Request description.
- checklistsNoarray of objectNo-Configurable checklists added as checkboxes to the Merge Request description.
- templatesNoarray of objectNo-URLs to Cookiecutter templates that will be rendered and added to the Merge Request branch.

10.1.1. Optional Property badges

Typearray of string

Description: List of badge slugs to be imported as GitLab Merge Request labels.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
badges items-
10.1.1.1. badges items
Typestring

10.1.2. Optional Property checklist

Typearray

Description: (Deprecated) Single checklist items added as checkboxes to the Merge Request description.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
checklist_item-
10.1.2.1. checklist_item
Typeobject
Additional propertiesNot allowed
Defined in#/$defs/checklist_item
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ labelNostringNo-Text of the checkbox item.
- show_ifNoobjectNo-Optional JsonLogic expression. If provided, the item is only included when the expression evaluates to truthy.
- check_ifNoobjectNo-Optional JsonLogic expression. If provided and evaluates to truthy, the checkbox renders pre-checked (- [x]). Otherwise it renders unchecked (- [ ]).
10.1.2.1.1. Property label
Typestring

Description: Text of the checkbox item.

10.1.2.1.2. Property show_if
Typeobject
Additional propertiesAny type: allowed

Description: Optional JsonLogic expression. If provided, the item is only included when the expression evaluates to truthy.

10.1.2.1.3. Property check_if
Typeobject
Additional propertiesAny type: allowed

Description: Optional JsonLogic expression. If provided and evaluates to truthy, the checkbox renders pre-checked (- [x]). Otherwise it renders unchecked (- [ ]).

10.1.3. Optional Property checklists

Typearray of object

Description: Configurable checklists added as checkboxes to the Merge Request description.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
checklists items-
10.1.3.1. checklists items
Typeobject
Additional propertiesAny type: allowed
PropertyPatternTypeDeprecatedDefinitionTitle/Description
- titleNostringNo-Display title for the checklist.
+ itemsNoarrayNo-Items in this checklist.
10.1.3.1.1. Property title
Typestring

Description: Display title for the checklist.

10.1.3.1.2. Property items
Typearray

Description: Items in this checklist.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
checklist_item-
10.1.3.1.2.1. checklist_item
Typeobject
Additional propertiesNot allowed
Same definition asintegrations_gitlab_checklist_items

10.1.4. Optional Property templates

Typearray of object

Description: URLs to Cookiecutter templates that will be rendered and added to the Merge Request branch.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
templates items-
10.1.4.1. templates items
Typeobject
Additional propertiesNot allowed
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ urlNostringNo-Cookiecutter template URL or path.
- directoryNostringNo-Optional subdirectory within the repository containing the template.
- conditionNoobjectNoIn jsonlogic.schema.jsonJSON Logic expression to conditionally render the template.
10.1.4.1.1. Property url
Typestring

Description: Cookiecutter template URL or path.

10.1.4.1.2. Property directory
Typestring

Description: Optional subdirectory within the repository containing the template.

10.1.4.1.3. Property condition
Typeobject
Additional propertiesAny type: allowed
Defined injsonlogic.schema.json

Description: JSON Logic expression to conditionally render the template.


Generated using json-schema-for-humans on 2026-03-20 at 04:11:57 +0100

  • 1. Property item 0
    • 1.1. The following properties are required
  • 2. Property item 1
    • 2.1. The following properties are required
  • 3. Required Property name
  • 4. Optional Property description
  • 5. Optional Property slug
  • 6. Optional Property links
    • 6.1. links items
  • 7. Optional Property pages
    • 7.1. page
  • 8. Optional Property sections
    • 8.1. section
  • 9. Optional Property sidebar
    • 9.1. Optional Property sections
    • 9.2. Optional Property links
  • 10. Optional Property integrations
    • 10.1. Optional Property gitlab