PSRule
PSRule copied to clipboard
Add break option
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'