Skip to content

Commit

Permalink
fix validating payloads from github (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
mura-s authored and VaibhavPage committed Apr 3, 2019
1 parent 74d0443 commit 4099873
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gateways/community/github/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ func (rc *RouteConfig) PostStart() error {
}
}

if gc.WebHookSecret != nil {
// As secret in hook config is masked with asterisk (*), replace it with unmasked secret.
hook.Config["secret"] = hookConfig["secret"]
}

rc.hook = hook
rc.route.Logger.WithEventSource(rc.route.EventSource.Name).Info("github hook created")
return nil
Expand Down

0 comments on commit 4099873

Please sign in to comment.