prepare_waf_pr
Add generated WAF rules and test files to a local CrowdSec hub clone to prepare a pull request.
Instructions
Help prepare a pull request in a local clone of the CrowdSec hub repository by adding the generated WAF rule and associated test files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hub_dir | Yes | Path to the local clone of the CrowdSec hub repository | |
| rule_yaml | Yes | Generated WAF rule YAML content | |
| rule_filename | Yes | Relative path (from hub root) for the rule file | |
| collection_name | No | Target collection in the format author/name (mapped to collections/author/name.yaml) | |
| nuclei_filename | Yes | Filename for the nuclei test template | |
| test_config_yaml | Yes | Generated AppSec test config.yaml content | |
| test_nuclei_yaml | Yes | Generated adapted nuclei template content |