Merge pull request #485 from moorereason/iss234-soft-sig-errors

Add soft signature failure support
This commit is contained in:
Adnan Hajdarević 2020-12-06 08:39:31 +01:00 committed by GitHub
commit b6e5b11174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 554 additions and 6 deletions

View file

@ -480,6 +480,9 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
if matchedHook.TriggerRule == nil {
ok = true
} else {
// Save signature soft failures option in request for evaluators
req.AllowSignatureErrors = matchedHook.TriggerSignatureSoftFailures
ok, err = matchedHook.TriggerRule.Evaluate(req)
if err != nil {
if !hook.IsParameterNodeError(err) {