Skip to main content

Enabling A Repository Webhook Capability

5411651.png

Figure: Repository Webhook: Management Capability Settings

To enable a Webhook for a specific repository, perform the following steps:

  1. Select Capabilities to open the Capabilities panel, located in the Administration menu

  2. Click the Create capability button to get to the Select Capability Type table

  3. Select Webhook: Repository to open the Create Webhook: Repository Capability panel

  4. Complete the form by selecting which Repository you’d like to receive events from, select Event Types you’d like to have events sent for, and entering the URL you would like the events to be sent to

This form also includes an option to use a Secret Key for sending your events with a HMAC payload digest.

Note

Nexus Repository Manager Webhooks will provide a sha1 hash of the JSON body using a shared secret key. This allows you to verify the data integrity as well as its authenticity. The JSON body is hashed without whitespace and this hash is provided in the header as X-Nexus-Webhook-Signature.

After you enable the capability, you will now see the Webhook: Repository capability in the list of Capabilities.