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

@@ -1,10 +1,6 @@
#!/bin/bash
git clone https://github.com/coreruleset/coreruleset.git owasp-v3
cd owasp-v3
git checkout v3.0.2 -b tag3.0.2
cd -
git clone -c advice.detachedHead=false --depth 1 --branch v3.0.2 https://github.com/coreruleset/coreruleset.git owasp-v3
echo 'Include "owasp-v3/crs-setup.conf.example"' >> basic_rules.conf
echo 'Include "owasp-v3/rules/*.conf"' >> basic_rules.conf