Enabling A Repository Webhook Capability
To enable a Webhook for a specific repository, perform the following steps:
Select Settings → Capabilities.
Select Create Capability.
Select Webhook: Repository.
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.
When running Nexus Repository 3.99.0 or later in FIPS mode, any new or updated webhook secret key must be at least 16 bytes long. If you have an existing webhook secret key shorter than 16 bytes, update the secret key in both Nexus Repository and the receiving application.
After you enable the capability, you will now see the Webhook: Repository capability in the list of Capabilities.