PSRule icon indicating copy to clipboard operation
PSRule copied to clipboard

Add break option

Open BernieWhite opened this issue 2 years ago • 0 comments

Currently PSRule only breaks if rules fail or error or other errors occur. When chaining to reporting tools within the pipeline such as SARIF reports we may want to not break.

Add an option to disable breaking the pipeline such as:

execution:
  break: false

Update 2023-04-27

However since there is multiple severity levels for rules maybe this should be configurable based on level for example:

Don't break the pipeline

execution:
  break: 'None'

Default, break the pipeline on rules that fail with severity set to Error

execution:
  break: 'Error'
execution: { }

Break the pipeline on rules that fail with severity set to Warning or higher

execution:
  break: 'Warning'

BernieWhite avatar Apr 22 '23 09:04 BernieWhite