From bae9ce6bb375726f30badd2448b42a4f425109df Mon Sep 17 00:00:00 2001 From: fab Date: Tue, 7 Jan 2025 19:06:41 +0100 Subject: [PATCH] Update nginx.yml --- .github/workflows/nginx.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index 6d979a9..b011f1c 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -26,18 +26,18 @@ jobs: run: | unzip nginx_waf.zip -d waf_rules echo "Extracted WAF rules into waf_rules directory" - ls -lh waf_rules + ls -lh waf_rules/waf_patterns/nginx/ - name: Verify WAF rules extraction run: | - if [ ! -d "waf_rules" ]; then + if [ ! -d "waf_rules/waf_patterns/nginx" ]; then echo "Error: WAF rules directory not found after extraction!" exit 1 fi - if [ -z "$(ls -A waf_rules/*.conf 2>/dev/null)" ]; then - echo "Error: No .conf files found in waf_rules!" - echo "Contents of waf_rules:" - ls -l waf_rules + if [ -z "$(ls -A waf_rules/waf_patterns/nginx/*.conf 2>/dev/null)" ]; then + echo "Error: No .conf files found in waf_rules/waf_patterns/nginx/" + echo "Contents of waf_rules/waf_patterns/nginx/:" + ls -l waf_rules/waf_patterns/nginx/ exit 1 fi @@ -50,7 +50,7 @@ jobs: - name: Combine Nginx configuration run: | - cat tests/nginx.conf waf_rules/*.conf > combined_nginx.conf + cat tests/nginx.conf waf_rules/waf_patterns/nginx/*.conf > combined_nginx.conf echo "Combined Nginx configuration:" cat combined_nginx.conf