Type alias SeverityModifierRuleAction

SeverityModifierRuleAction: SeverityModifierRuleSetAction | SeverityModifierRuleShiftAction | UnparsedObject

The action to take when a severity modifier rule matches a finding. This is a discriminated union on type: set assigns a fixed severity, while shift moves the severity up or down by one rank.

With type: set, send severity (info_none, low, medium, high, or critical) and no severity_delta. With type: shift, send severity_delta (up_one or down_one) and no severity. Both accept an optional description. A shift rule doesn't match findings with an unknown severity.

A severity modifier rule's rule.query must not filter on @severity or on the @severity_details.user_adjusted.* namespace.

Use @severity_details.adjusted.value instead, which reflects the severity before user-defined adjustments.

Generated using TypeDoc