Set up webhooks

Learn how to set up and configure a webhook.

In order to send a webhook request when an automation rule is triggered, add a "trigger webhook" action to the rule and enter the URL for the webhook in the URL field. When the rule is triggered, a POST request will be sent to the given URL with JSON-encoded data about the event.

The JSON will contain the following keys:

Each element of triggeredFor will contain the following keys:

Sending a sample request

A sample webhook request can be sent to the specified URL by clicking Send sample request. The triggeredFor array will be populated using up to three vulnerabilities that were found the last time this repository was scanned. Note that these vulnerabilities may not necessarily fulfill the conditions specified in the rule.

Verification Secret

To ensure that a webhook request was sent by Debricked, a key can be specified in the verification secret field. When a verification secret is specified, webhook requests made by this rule will include the header X-Debricked-Signature, containing an SHA256-HMAC signature generated using the webhook payload and the verification secret.

Set up a webhook with Slack through Zapier

You can use the automation engine to send notifications to Slack, with the help of middleware, e.g. Zapier. Keep in mind that this is currently only possible using the premium version of Zapier.

To create a webhook URL:

  1. Open Zapier

  2. Click the +Create Zap button

  3. Search for and select Webhooks by Zapier

  4. Go to the Event dropdown, select Catch Hook and click on Continue

  5. Copy the Webhook URLI wi

  6. Click on Continue and then Test trigger

  7. Once you have the URL, open the Debricked tool and go to Automations in the left-side menu

  8. You can either create a new rule or edit an existing one - in the Then statement, add the trigger webhook action

  9. Paste the Webhook URL copied from Zapier into the field

  10. If needed, click on Send sample request to test if everything works correctly

  11. Click on Generate rule and Save

Set up notifications in Slack using the webhook

To manage your notifications in Slack:

  1. Open Zapier

  2. Click on Action and select Slack

  3. Go to the Event dropdown and select the desired action, e.g. Send Channel Message

  4. Click on Choose account and follow the instructions on the page to connect your Slack account to Zapier

  5. Click on Set up action and select the data that you want to send

  6. Click on Message text and select what information you want to be included in the message

  7. Click on Test action

  8. Click on Publish Zap

Now you are ready to receive Slack notifications from Debricked!

Last updated