mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Merge pull request #3078 from airween/v2/ciworklowinstall
feat: Add more steps: install built module and restart the server
This commit is contained in:
commit
6b8956e0bb
6
.github/security2.conf
vendored
Normal file
6
.github/security2.conf
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
LoadModule security2_module /usr/lib/apache2/modules/mod_security2.so
|
||||||
|
|
||||||
|
<IfModule security2_module>
|
||||||
|
SecDataDir /var/cache/modsecurity
|
||||||
|
Include /etc/apache2/modsecurity.conf
|
||||||
|
</IfModule>
|
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@ -10,17 +10,24 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-22.04]
|
os: [ubuntu-22.04]
|
||||||
platform: [x64]
|
platform: [x32, x64]
|
||||||
compiler: [gcc]
|
compiler: [gcc, clang]
|
||||||
configure:
|
configure:
|
||||||
- {label: "with pcre2", opt: "--with-pcre2" }
|
- {label: "with pcre, no study, no jit", opt: "--enable-pcre-study=no" }
|
||||||
- {label: "with lua", opt: "--with-lua" }
|
- {label: "with pcre, with study, no jit", opt: "--enable-pcre-study=yes" }
|
||||||
- {label: "wo lua", opt: "--without-lua" }
|
- {label: "with pcre, no study, with jit", opt: "--enable-pcre-study=no --enable-pcre-jit" }
|
||||||
|
- {label: "with pcre, with study, with jit", opt: "--enable-pcre-study=yes --enable-pcre-jit" }
|
||||||
|
- {label: "with pcre2", opt: "--with-pcre2 --enable-pcre-study=no" }
|
||||||
|
- {label: "with pcre2, with study, no jit", opt: "--with-pcre2 --enable-pcre-study=yes" }
|
||||||
|
- {label: "with pcre2, no study, with jit", opt: "--with-pcre2 --enable-pcre-study=no --enable-pcre-jit" }
|
||||||
|
- {label: "with pcre2, with study, with jit", opt: "--with-pcre2 --enable-pcre-study=yes --enable-pcre-jit" }
|
||||||
|
- {label: "with lua", opt: "--with-lua" }
|
||||||
|
- {label: "wo lua", opt: "--without-lua" }
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Dependencies
|
- name: Setup Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y -qq
|
sudo apt-get update -y -qq
|
||||||
sudo apt-get install -y apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev
|
sudo apt-get install -y apache2-dev libxml2-dev liblua5.1-0-dev libcurl4-gnutls-dev libpcre2-dev pkg-config libyajl-dev apache2 apache2-bin apache2-data
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: autogen.sh
|
- name: autogen.sh
|
||||||
run: ./autogen.sh
|
run: ./autogen.sh
|
||||||
@ -29,3 +36,16 @@ jobs:
|
|||||||
- uses: ammaraskar/gcc-problem-matcher@master
|
- uses: ammaraskar/gcc-problem-matcher@master
|
||||||
- name: make
|
- name: make
|
||||||
run: make -j `nproc`
|
run: make -j `nproc`
|
||||||
|
- name: install module
|
||||||
|
run: sudo make install
|
||||||
|
- name: prepare config
|
||||||
|
run: |
|
||||||
|
sudo cp .github/security2.conf /etc/apache2/mods-enabled/
|
||||||
|
sudo cp modsecurity.conf-recommended /etc/apache2/modsecurity.conf
|
||||||
|
sudo cp unicode.mapping /etc/apache2/
|
||||||
|
sudo mkdir -p /var/cache/modsecurity
|
||||||
|
sudo chown -R www-data:www-data /var/cache/modsecurity
|
||||||
|
- name: start apache with module
|
||||||
|
run: |
|
||||||
|
sudo systemctl restart apache2.service
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user