Add script to download OWASP CRS v4 to run benchmark

- Simplified clone & checkout of CRS repository
- Removed no longer maintained OWASP Core Ruleset v2
This commit is contained in:
Eduardo Arias
2024-06-01 23:11:47 +00:00
parent 6faf6d7ec0
commit eb62cac7fa
4 changed files with 10 additions and 63 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
git clone -c advice.detachedHead=false --depth 1 --branch v4.3.0 https://github.com/coreruleset/coreruleset.git owasp-v4
echo 'Include "owasp-v4/crs-setup.conf.example"' >> basic_rules.conf
echo 'Include "owasp-v4/rules/*.conf"' >> basic_rules.conf
echo "Done."