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

Clamp CLI exit codes #76

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Clamp CLI exit codes #76

merged 2 commits into from
Apr 22, 2024

Conversation

CBonnell
Copy link
Collaborator

If the finding count is a multiple of 256, then a zero exit code will be returned from the CLI tooling.

To prevent this scenario and ensure that users who rely on a non-zero exit code to denote failure, clamp the exit code to 255.

@CBonnell CBonnell merged commit 69df2c4 into main Apr 22, 2024
8 checks passed
@CBonnell CBonnell deleted the clamp-exit-code branch April 22, 2024 20:09
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.

1 participant