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

terrascan should exit with non zero exit code when scan error are present #994

Merged
merged 2 commits into from
Aug 19, 2021

Conversation

patilpankaj212
Copy link
Contributor

  1. exit with 5 when scan errors are present with violations
  2. exit with 4 when scan errors are present without violations

@codecov
Copy link

codecov bot commented Aug 16, 2021

Codecov Report

Merging #994 (085038b) into master (687863e) will decrease coverage by 0.00%.
The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #994      +/-   ##
==========================================
- Coverage   78.58%   78.58%   -0.01%     
==========================================
  Files         224      224              
  Lines        5650     5659       +9     
==========================================
+ Hits         4440     4447       +7     
- Misses        930      932       +2     
  Partials      280      280              
Impacted Files Coverage Δ
pkg/cli/run.go 87.65% <63.63%> (-1.24%) ⬇️

Copy link
Contributor

@cesar-rodriguez cesar-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind updating the Readme and docs explaining the new error codes?

@sonarcloud
Copy link

sonarcloud bot commented Aug 19, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

Terrascan does not exit with error code in pipeline or CLI
2 participants