mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-18 12:48:08 +00:00
* issue #243: Changes condition so that score: false tests are performed * issue #243: Changes comments.
This commit is contained in:
parent
b86dd92c91
commit
86e3456f33
@ -102,8 +102,8 @@ func (c *Check) run() State {
|
||||
return c.State
|
||||
}
|
||||
|
||||
// If check type is manual or the check is not scored, force result to WARN
|
||||
if c.Type == "manual" || !c.Scored {
|
||||
// If check type is manual force result to WARN
|
||||
if c.Type == "manual" {
|
||||
c.State = WARN
|
||||
return c.State
|
||||
}
|
||||
@ -193,7 +193,11 @@ func (c *Check) run() State {
|
||||
if finalOutput.testResult {
|
||||
c.State = PASS
|
||||
} else {
|
||||
if c.Scored {
|
||||
c.State = FAIL
|
||||
} else {
|
||||
c.State = WARN
|
||||
}
|
||||
}
|
||||
} else {
|
||||
errmsgs += handleError(
|
||||
|
Loading…
Reference in New Issue
Block a user