StackGuardian/tirith
ð cli.py: return non zero code when final evaluation returns false
ãªãŒãã³
#89 opened on 2022/11/28
buggood first issuehacktoberfest
Repository metrics
- Stars
-  (168 åã®ã¹ã¿ãŒ)
- PR merge metrics
- Â (PR metrics pending)
説æ
Describe the bug tirith always return zero code even when the final evaluator returns false (failed)
To Reproduce I was using these files: plan.json.txt apigateway_state_logging_enabled.tirith.json.txt
Steps to reproduce the behavior:
- Download and rename both of the files above, from .txt to .json
- Run
tirith -policy-path apigateway_state_logging_enabled.tirith.json -input-path plan.json - The final evaluation should be failed
- Check the return code by doing
echo $? - It will print 0 instead of 1
Expected behavior It should return non-zero code as it will make the caller of the program knows that tirith final evaluation has failed