File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
pull_request :
6
6
7
+ # Default: none
8
+ permissions : {}
9
+
7
10
jobs :
11
+ permissions :
12
+ contents : read
8
13
build-linux :
9
14
runs-on : ${{ matrix.os }}
10
15
strategy :
13
18
compiler : [gcc, clang]
14
19
env :
15
20
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' }}++ "
17
22
COMPDEPS : " ${{ matrix.compiler == 'gcc' && 'gcc g++' || 'clang' }}"
18
23
steps :
19
24
- name : Setup Dependencies
30
35
./configure --without-lmdb --prefix=/usr
31
36
make -j $(nproc)
32
37
sudo make install
33
- cd
34
38
- uses : actions/checkout@v4
35
39
with :
36
40
path : ModSecurity-nginx
@@ -44,13 +48,13 @@ jobs:
44
48
- name : Build nginx with ModSecurity-nginx module
45
49
working-directory : nginx
46
50
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
48
52
make
49
53
make modules
50
54
sudo make install
51
55
- name : Start Nginx
52
56
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
54
58
- name : Run attack test vhost 1
55
59
run : |
56
60
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