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(policies): return exit status 1 when policy breaches have been detected #169

Conversation

elsapet
Copy link
Contributor

@elsapet elsapet commented Nov 28, 2022

Description

Return exit status of 1 (failure) when the report format is set to policies, and policy breaches have been detected

Policy breaches detected

Screenshot 2022-11-28 at 11 59 28

No policy breaches detected

Screenshot 2022-11-28 at 11 59 42

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

@swarmia
Copy link

swarmia bot commented Nov 28, 2022

@elsapet elsapet force-pushed the AMA-3266-return-command-line-exit-code-when-policy-breaches-have-been-detected branch from 1c455df to 69f7f07 Compare November 28, 2022 12:50
@elsapet elsapet force-pushed the AMA-3266-return-command-line-exit-code-when-policy-breaches-have-been-detected branch from 69f7f07 to b2d4a9a Compare November 28, 2022 12:51
@elsapet elsapet merged commit 01d7aa3 into main Nov 28, 2022
@elsapet elsapet deleted the AMA-3266-return-command-line-exit-code-when-policy-breaches-have-been-detected branch November 28, 2022 13:45
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.

None yet

2 participants