hasGatingViolation reports whether any of the supplied violations should count toward the policy gate. Entries flagged Suppress (typically because an assessment renders the finding NOT_AFFECTED) are excluded.
(violations []*action.PolicyViolation)
| 190 | // count toward the policy gate. Entries flagged Suppress (typically because |
| 191 | // an assessment renders the finding NOT_AFFECTED) are excluded. |
| 192 | func hasGatingViolation(violations []*action.PolicyViolation) bool { |
| 193 | for _, v := range violations { |
| 194 | if !v.Suppress { |
| 195 | return true |
| 196 | } |
| 197 | } |
| 198 | return false |
| 199 | } |
| 200 | |
| 201 | func validatePolicyEnforcement(status *action.AttestationStatusResult, bypassPolicyCheck bool) error { |
| 202 | // Block if any of the policies has been configured as a gate. Entries |
no outgoing calls
no test coverage detected