Configuring webhooks in GitHub Enterprise
You must configure a webhook for a GitHub repository to validate the communication between GitHub Enterprise and IBM® Engineering Workflow Management (EWM).
About this task
Note: A webhook is a pre-requisite for a
pre-receive hook.
Procedure
- Go to the GitHub repository page in the web browser.
- Click the Settings tab.
- In the navigation pane, click Hooks.
- Click Add Webhook.
- In the Payload URL field, paste the webhook URL that you copied in Registering the GitHub repository in EWM.
- In the Content type field, select any content type (both JSON and x-www-form-urlencoded are supported).
- In the Secret Key field, provide the same secret that you provided in Registering the GitHub repository in EWM.
- If you get this error when validating the webhook: Peer certificate cannot be authenticated with given CA certificates, then add the IBM Engineering Workflow Management (EWM) server certificate to the GitHub Enterprise server. We do not recommend disabling SSL verification.
- Below Which events would you like to trigger this webhook?, select Let me select individual events. In the options displayed, ensure that the Pushes option is selected.
- Ensure that the Active check box is selected. This option keeps the webhook enabled and sends notifications whenever an event is triggered.
- Click Add webhook to complete the configuration of the webhook in GitHub Enterprise.