Skip to content

Add break option #1508

@BernieWhite

Description

@BernieWhite

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: 'Continue'

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

execution:
  break: 'OnError'
execution: { }

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

execution:
  break: 'OnWarning'

Metadata

Metadata

Assignees

Labels

feature: outputIssues that affect output and results

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions