Skip to content

Commit bafa2e6

Browse files
committed
add section about notifications
Signed-off-by: tdruez <tdruez@aboutcode.org>
1 parent 6d7d15f commit bafa2e6

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

docs/howto-6-policy-rules-configuration.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,21 @@ To drill into the affected packages for a specific rule:
116116
The product inventory opens pre-filtered to show only the packages that triggered
117117
that rule. You can use the inventory's standard filters and sorting to prioritize
118118
remediation.
119+
120+
6. Set Up Notifications
121+
-----------------------
122+
123+
DejaCode can notify external systems automatically when policy violations are detected
124+
or resolved, without requiring manual checks of the compliance tab.
125+
126+
Two webhook events are available:
127+
128+
- ``policy.violation_detected``: fired when one or more new violations are detected
129+
during a rule evaluation run.
130+
- ``policy.violation_resolved``: fired when violations are resolved.
131+
132+
To receive these notifications, configure a webhook in the Admin interface pointing to
133+
your target endpoint (Slack, ticketing system, CI/CD pipeline, or any HTTP receiver).
134+
135+
.. seealso::
136+
:ref:`integrations_webhook` for instructions on creating and configuring webhooks.

0 commit comments

Comments
 (0)