diff --git a/.github/workflows/nginx.yml b/.github/workflows/nginx.yml index ce233e8..f85e95f 100644 --- a/.github/workflows/nginx.yml +++ b/.github/workflows/nginx.yml @@ -67,6 +67,7 @@ jobs: # Create a merged_waf_rules.conf file with a server block echo "server {" > merged_waf_rules.conf for file in $(grep -L "map " waf_rules/waf_patterns/nginx/*.conf); do + echo "Merging $file..." cat "$file" >> merged_waf_rules.conf done echo "}" >> merged_waf_rules.conf @@ -74,6 +75,10 @@ jobs: echo "Contents of merged_waf_rules.conf:" cat merged_waf_rules.conf + # Debug: Print the problematic line (line 1162) + echo "Debugging line 1162 of merged_waf_rules.conf:" + sed -n '1162p' merged_waf_rules.conf + - name: Combine Nginx configuration run: | # Create a temporary nginx.conf file that includes the map directives and merged WAF rules