mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-31 09:42:28 +00:00
Merge pull request #485 from moorereason/iss234-soft-sig-errors
Add soft signature failure support
This commit is contained in:
commit
b6e5b11174
7 changed files with 554 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue