Hi, I need some help about how to create webhook f...
# pact-broker
z
Hi, I need some help about how to create webhook for -
contract requiring verification published
event. We are using github actions. Should I add a CLI cmd in github actions on the consumer side? Do we need to make any changes in provider repo as well to listen to this event?
m
IMO it’s the responsibility of the provider to setup this webhook, because they are the ones receiving it
As per this article, on the provider side, you should set the verification to only verify the pact that is passed in by the webhook
This workshop shows the entire flow
(this is the build for when the provider build runs to make sure it works as a regression suite): https://github.com/pactflow/example-provider/blob/master/src/product/product.providerChange.pact.test.js)
z
Thanks Matt, I’ll try these steps!
🙌 1