File tree Expand file tree Collapse file tree 3 files changed +1744
-0
lines changed Expand file tree Collapse file tree 3 files changed +1744
-0
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 72
72
TEST_NGINX_BINARY=../objs/nginx prove modsecurity*.t
73
73
- name : Start Nginx
74
74
run : |
75
+ sudo cp /home/runner/work/ModSecurity-nginx/ModSecurity-nginx/ModSecurity-nginx/.github/nginx/docs/* /usr/local/nginx/html/
75
76
sudo /usr/local/nginx/sbin/nginx -c /home/runner/work/ModSecurity-nginx/ModSecurity-nginx/ModSecurity-nginx/.github/nginx/nginx.conf
76
77
- name : Run attack test vhost 1
77
78
run : |
@@ -109,6 +110,37 @@ jobs:
109
110
echo "FAIL"
110
111
exit 1
111
112
fi
113
+ - name : Run file consistency check 1
114
+ run : |
115
+ curl -sS "http://localhost/data50k.json" --output data50k.json
116
+ if [ -f data50k.json ]; then
117
+ diff data50k.json /usr/local/nginx/html/data50k.json > /dev/null
118
+ if [ $? -eq 0 ]; then
119
+ echo "OK"
120
+ else
121
+ echo "FAIL"
122
+ exit 2
123
+ fi
124
+ else
125
+ echo "FAIL"
126
+ exit 1
127
+ fi
128
+ - name : Run file consistency check 2
129
+ run : |
130
+ curl -sS "http://localhost/plugged.png" --output plugged.png
131
+ if [ -f plugged.png ]; then
132
+ diff plugged.png /usr/local/nginx/html/plugged.png > /dev/null
133
+ if [ $? -eq 0 ]; then
134
+ echo "OK"
135
+ else
136
+ echo "FAIL"
137
+ exit 2
138
+ fi
139
+ else
140
+ echo "FAIL"
141
+ exit 1
142
+ fi
143
+
112
144
113
145
build-windows :
114
146
runs-on : windows-2022
You can’t perform that action at this time.
0 commit comments