Skip to Content
🏆 1st Place on Product Hunt! Check it out →
DocumentationPost ActionsCustom Actions

Custom Actions

Build your own post actions to integrate with any system or workflow.

Configuration Options

SettingDescriptionExample
Webhook URLEndpoint to callhttps://api.company.com/webhooks/warestack
HTTP MethodRequest methodPOST, PUT, PATCH
HeadersCustom headersAuthorization: Bearer {token}
PayloadRequest body templateJSON, 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

Warestack

About

Our story

© 2024, Warestack