Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add break option #1508

Open
BernieWhite opened this issue Apr 22, 2023 · 0 comments
Open

Add break option #1508

BernieWhite opened this issue Apr 22, 2023 · 0 comments
Labels
feature: output Issues that affect output and results
Milestone

Comments

@BernieWhite
Copy link
Member

BernieWhite commented Apr 22, 2023

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'
@BernieWhite BernieWhite added the feature: output Issues that affect output and results label Apr 22, 2023
@BernieWhite BernieWhite added this to the v2.10.0 milestone May 30, 2023
@BernieWhite BernieWhite modified the milestones: v2.10.0, v3.0.0 Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: output Issues that affect output and results
Projects
None yet
Development

No branches or pull requests

1 participant