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

feat: add fail-on-severity flag #1351

Merged
merged 5 commits into from
Oct 24, 2023
Merged

feat: add fail-on-severity flag #1351

merged 5 commits into from
Oct 24, 2023

Conversation

didroe
Copy link
Contributor

@didroe didroe commented Oct 24, 2023

Description

Adds a new --fail-on-severity flag which accepts a comma-separated list of severity levels. When there is a finding with one of the specified levels, then the report is deemed to have failed.

The failure will be reported as before, including exiting with any code specified via --exit-code.

Related

Checklist

  • I've added test coverage that shows my fix or feature works as expected.
  • I've updated or added documentation if required.
  • I've included usage information in the description if CLI behavior was updated or added.
  • PR title follows Conventional Commits format

@didroe didroe requested a review from cfabianski October 24, 2023 11:50
@didroe didroe merged commit fb77ead into main Oct 24, 2023
8 checks passed
@didroe didroe deleted the feat/fail-on-severity-flag branch October 24, 2023 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag to fail only on certain severity levels
2 participants