Skip to content

Commit d285913

Browse files
committed
Make syntax more simple
1 parent dc6a525 commit d285913

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ on:
44
push:
55
pull_request:
66

7+
# Default: none
8+
permissions: {}
9+
710
jobs:
11+
permissions:
12+
contents: read
813
build-linux:
914
runs-on: ${{ matrix.os }}
1015
strategy:
@@ -13,7 +18,7 @@ jobs:
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
@@ -30,7 +35,6 @@ jobs:
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")

0 commit comments

Comments
 (0)