Enabling A Repository Webhook Capability
Figure: Repository Webhook: Management Capability Settings
To enable a Webhook for a specific repository, perform the following steps:
- Select Capabilities to open the Capabilities panel, located in the Administration menu
- Click the Create capability button to get to the Select Capability Type table
- Select Webhook: Repository to open the Create Webhook: Repository Capability panel
- 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.
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
After you enable the capability, you will now see the Webhook: Repository capability in the list of Capabilities.