File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 44 push :
55 pull_request :
66
7+ # Default: none
8+ permissions : {}
9+
710jobs :
11+ permissions :
12+ contents : read
813 build-linux :
914 runs-on : ${{ matrix.os }}
1015 strategy :
1318 compiler : [gcc, clang]
1419 env :
1520 CC : " /usr/bin/${{ matrix.compiler }}"
16- CXX : " ${{ matrix.compiler == 'gcc' && '/usr/bin/g++ ' || '/usr/bin/ clang++ ' }}"
21+ CXX : " /usr/bin/ ${{ matrix.compiler == 'gcc' && 'g ' || 'clang' }}++ "
1722 COMPDEPS : " ${{ matrix.compiler == 'gcc' && 'gcc g++' || 'clang' }}"
1823 steps :
1924 - name : Setup Dependencies
3035 ./configure --without-lmdb --prefix=/usr
3136 make -j $(nproc)
3237 sudo make install
33- cd
3438 - uses : actions/checkout@v4
3539 with :
3640 path : ModSecurity-nginx
@@ -44,13 +48,13 @@ jobs:
4448 - name : Build nginx with ModSecurity-nginx module
4549 working-directory : nginx
4650 run : |
47- ./auto/configure --with-ld-opt="-Wl,-rpath,/usr/local/lib" --without-pcre2 --add-module=/home/runner/work/ ModSecurity-nginx/ModSecurity-nginx/ModSecurity-nginx
51+ ./auto/configure --with-ld-opt="-Wl,-rpath,/usr/local/lib" --without-pcre2 --add-module=ModSecurity-nginx/ModSecurity-nginx/ModSecurity-nginx
4852 make
4953 make modules
5054 sudo make install
5155 - name : Start Nginx
5256 run : |
53- sudo /usr/local/nginx/sbin/nginx -c /home/runner/work/ ModSecurity-nginx/ModSecurity-nginx/ModSecurity-nginx/.github/nginx/nginx.conf
57+ sudo /usr/local/nginx/sbin/nginx -c ModSecurity-nginx/ModSecurity-nginx/ModSecurity-nginx/.github/nginx/nginx.conf
5458 - name : Run attack test vhost 1
5559 run : |
5660 status=$(curl -sSo /dev/null -w %{http_code} -I -X GET -H "Host: modsectest1" "http://localhost/?q=attack")
You can’t perform that action at this time.
0 commit comments