Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

HOWTO: Connect to Slack

view on GitHub

Notifications & Webhooks let you connect two tools to notify users, trigger automated workflows, or audit certain events. They can alert you via Slack when new vulnerabilities are detected, a noncompliant package is discovered, and when other package-related events occur.

In this page, we show you how to connect ProGet to Slack and sample payload messages to copy/paste into your own webhook.

Step 1: Create a Webhook in Slack

To connect to Slack, start by following this Slack tutorial to create your incoming webhook application inside Slack. Slack now recommends this as the best way to add webhooks (instead of the previously recommended third-party app called Incoming Webhooks).

SlackWebHooks.png

Once you've created your Incoming Webhook application in Slack, you can optionally change the notification colors and the app's icon.

SlackApp.png

Note that to edit the webhook again, you must go to "Your Apps" inside Slack, rather than from the channel where the webhook posts.

Step 2: Create a Slack Message in ProGet

In your ProGet instance, navigating to "Administration" > "Notifiers and Webhooks" under "Global Components".

From here select "Create Notifier".

Select the "Event" for the notifier, select "Slack Message", and then enter your Slack URL.

You can also select the "Customize Slack" tab to add custom text to your Slack Message.

Step 3: (Optional) Test your Slack Message

After you've created your notifier, take the configured action in ProGet, and your Slack should receive a notification from ProGet!

SlackMessageEvolution.png

Additional Notes

Creating a global notifier requires selecting "always run / all feeds" for "Run on feed" under the "Conditions" tab, but for Docker feeds, you will not be able to select this due to different Docker URLs. You can also set it to run on specific feeds only by selecting the feed:

ProGet 2023 and earlier

Notifications and Webhooks are available as a feature in ProGet 2024 as a replacement feature for Webhooks (archive.org). The features are substantially similar.