Configuring GitHub Webhooks
These steps show you how to configure webhook push events to send to Spinnaker from a single GitHub repository.
You need Spinnaker’s API running on an endpoint that is publicly reachable. Ideally this means that you’ve configured authentication . This is required to allow GitHub’s webhooks to reach Spinnaker.
If you’re unsure of what your Spinnaker API endpoint is, check the value of
~/.hal/$DEPLOYMENT/staging/spinnaker.yml. The value of
default. If you’re unsure, see the Halyard reference .
You need a GitHub repository to send Webhooks from.
Configuring your GitHub webhook
Under your GitHub repository, navigate to Settings > Webhooks > Add Webhook. Here, provide the following values to the form shown below:
|Payload URL||Given that the above
API endpoint is |
|Secret||The value is up to you, and must be provided to any GitHub webhooks triggers that you configure within Spinnaker. It’s used to ensure that only GitHub can trigger your pipelines, not an imposter.|
You do not need to configure Spinnaker via Halyard at this point – all that’s needed is pipeline trigger configuration. An example of that can be found in this guide .