Custom Actions
Build your own post actions to integrate with any system or workflow.
Configuration Options
Setting | Description | Example |
---|---|---|
Webhook URL | Endpoint to call | https://api.company.com/webhooks/warestack |
HTTP Method | Request method | POST , PUT , PATCH |
Headers | Custom headers | Authorization: Bearer {token} |
Payload | Request body template | JSON, XML, or custom format |
Use Cases
- API Integration - Connect to internal tools and systems
- Database Updates - Log events to your own database
- Third-party Services - Integrate with external platforms
- Custom Workflows - Build specialized automation
Example Configuration
post_action:
type: custom
webhook_url: "https://api.company.com/webhooks/warestack"
method: "POST"
headers:
"Authorization": "Bearer {api_token}"
"Content-Type": "application/json"
payload: |
{
"event": "rule_triggered",
"rule_name": "{rule_name}",
"severity": "{severity}",
"details": "{violation_details}",
"timestamp": "{timestamp}",
"repository": "{repository}",
"user": "{user}"
}
Available Variables
{rule_name}
- Name of the triggered rule{severity}
- Rule severity level{violation_details}
- Detailed violation information{timestamp}
- When the rule was triggered{repository}
- Repository where violation occurred{user}
- User who triggered the violation{team}
- Team associated with the rule
Benefits
- Complete Flexibility - Integrate with any system or API
- Custom Logic - Build specialized workflows for your needs
- Data Formatting - Structure data exactly how you need it
- Scalable - Handle high volumes of events efficiently
Last updated on