You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If I run kubesec scan score-1-pod-automount-sa-set-to-false.yml, kubesec reports "message": "Passed with a score of 1 points", and if I check kubesec's exit code I get a '0':
$ echo$?0
However, if I run a scan against a manifest that scores 0, kubesec also reports it as a pass: "message": "Passed with a score of 0 points", but the exit code is now '2':
$ echo$?2
A fail with a negative score value in Kubsec ("message": "Failed with a score of -4 points") also yields an exit code of '2':
$ echo$?2
Expected behaviour
If Kubsec reports a "Passed" message then the exit code should be consistent between a pass of 0 and any other positive integer pass.
Screenshots
If applicable, add screenshots to help explain your problem.
Other information
$ kubesec versionversion 2.14.0git commit edd68f6ffde5651c1c1460a8b6d83c7f62e4f5aabuild date 2023-11-21T15:48:03Z
The text was updated successfully, but these errors were encountered:
Describe the bug
If I run
kubesec scan score-1-pod-automount-sa-set-to-false.yml
, kubesec reports"message": "Passed with a score of 1 points"
, and if I check kubesec's exit code I get a '0':However, if I run a scan against a manifest that scores 0, kubesec also reports it as a pass:
"message": "Passed with a score of 0 points"
, but the exit code is now '2':A fail with a negative score value in Kubsec (
"message": "Failed with a score of -4 points"
) also yields an exit code of '2':Expected behaviour
If Kubsec reports a "Passed" message then the exit code should be consistent between a pass of 0 and any other positive integer pass.
Screenshots
If applicable, add screenshots to help explain your problem.
Other information
The text was updated successfully, but these errors were encountered: