Skip to content

Commit f746116

Browse files
authored
Update libinjection and bump version to 1.6 (#104)
* Version 1.6 * Updated libinjection to 4aa3894 * Fix formatting.
1 parent 1b71252 commit f746116

File tree

18 files changed

+84
-84
lines changed

18 files changed

+84
-84
lines changed

.github/workflows/distros.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
echo RELEASE_NAME="naxsi-${RELEASE_ID}-src-with-deps-tgz" >> $GITHUB_ENV
4040
export TARNAME="naxsi-${RELEASE_ID}-src-with-deps.tar.gz"
4141
touch "$TARNAME"
42+
rm -rf .git
4243
tar --exclude="$TARNAME" -czvf "$TARNAME" .
4344
- name: Upload tarball
4445
uses: actions/upload-artifact@v3
@@ -66,6 +67,7 @@ jobs:
6667
fi
6768
RELEASE_ID=${RELEASE_ID##refs/tags/}
6869
echo RELEASE_NAME="naxsi-${RELEASE_ID}-src-with-deps-zip" >> $GITHUB_ENV
70+
rm -rf .git
6971
- name: Upload zip
7072
uses: actions/upload-artifact@v3
7173
with:
@@ -137,7 +139,7 @@ jobs:
137139
run: |
138140
rm -rf naxsi_src/libinjection
139141
git clone https://github.com/libinjection/libinjection.git naxsi_src/libinjection
140-
git -C naxsi_src/libinjection checkout 51f3a96e9fcc90a6112f52ac96fd4661e7ab0a44
142+
git -C naxsi_src/libinjection checkout 4aa3894b21d03d9d8fc364505c0617d2aca73fc1
141143
chmod 777 .
142144
- name: ${{ matrix.name }} package
143145
if: matrix.package == 'apk'
@@ -191,7 +193,7 @@ jobs:
191193
run: |
192194
rm -rf naxsi_src/libinjection
193195
git clone https://github.com/libinjection/libinjection.git naxsi_src/libinjection
194-
git -C naxsi_src/libinjection checkout 51f3a96e9fcc90a6112f52ac96fd4661e7ab0a44
196+
git -C naxsi_src/libinjection checkout 4aa3894b21d03d9d8fc364505c0617d2aca73fc1
195197
git clone --depth=1 https://github.com/wargio/deb-creator.git
196198
chmod 777 .
197199
apt-get source nginx

.github/workflows/linter.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949
uses: actions/checkout@v3
5050
- name: Install wget, software-properties-common, lsb-release (dependencies of LLVM install script)
5151
run: sudo apt --assume-yes install wget software-properties-common lsb-release
52-
- name: Install automatic LLVM 13
53-
run: wget https://apt.llvm.org/llvm.sh -O /tmp/llvm-install.sh; chmod +x /tmp/llvm-install.sh; sudo /tmp/llvm-install.sh 13
54-
- name: Install clang-format-13
55-
run: sudo apt --assume-yes install clang-format-13
52+
- name: Install automatic LLVM 16
53+
run: wget https://apt.llvm.org/llvm.sh -O /tmp/llvm-install.sh; chmod +x /tmp/llvm-install.sh; sudo /tmp/llvm-install.sh 16
54+
- name: Install clang-format-16
55+
run: sudo apt --assume-yes install clang-format-16
5656
- name: Format check
57-
run: find naxsi_src/ -type f -name "*.c" -o -name "*.h" | grep -v "libinjection" | xargs -I % clang-format --verbose --dry-run %
57+
run: find naxsi_src/ -type f -name "*.c" -o -name "*.h" | grep -v "libinjection" | xargs -I % clang-format --verbose --Werror --dry-run %
5858

5959
rules:
6060
runs-on: ubuntu-latest

distros/alpine/1.18.0-r13/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ _add_module() {
6161
subpackages="$subpackages $pkgname-mod-$name:_module"
6262
}
6363

64-
_add_module "http-naxsi" "1.5" "https://github.com/wargio/naxsi" "naxsi_src"
64+
_add_module "http-naxsi" "1.6" "https://github.com/wargio/naxsi" "naxsi_src"
6565
_naxsi_provides="$pkgname-naxsi" # for backward compatibility
6666

6767
prepare() {

distros/alpine/1.18.0-r15/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _add_module() {
6262
subpackages="$subpackages $pkgname-mod-$name:_module"
6363
}
6464

65-
_add_module "http-naxsi" "1.5" "https://github.com/wargio/naxsi" "naxsi_src"
65+
_add_module "http-naxsi" "1.6" "https://github.com/wargio/naxsi" "naxsi_src"
6666
_naxsi_provides="$pkgname-naxsi" # for backward compatibility
6767

6868
prepare() {

distros/alpine/1.20.1-r3/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _add_module() {
6262
subpackages="$subpackages $pkgname-mod-$name:_module"
6363
}
6464

65-
_add_module "http-naxsi" "1.5" "https://github.com/wargio/naxsi" "naxsi_src"
65+
_add_module "http-naxsi" "1.6" "https://github.com/wargio/naxsi" "naxsi_src"
6666
_naxsi_provides="$pkgname-naxsi" # for backward compatibility
6767

6868
prepare() {

distros/alpine/1.20.2-r0/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _add_module() {
6262
subpackages="$subpackages $pkgname-mod-$name:_module"
6363
}
6464

65-
_add_module "http-naxsi" "1.5" "https://github.com/wargio/naxsi" "naxsi_src"
65+
_add_module "http-naxsi" "1.6" "https://github.com/wargio/naxsi" "naxsi_src"
6666
_naxsi_provides="$pkgname-naxsi" # for backward compatibility
6767

6868
prepare() {

distros/alpine/1.20.2-r1/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ _add_module() {
6363
subpackages="$subpackages $pkgname-mod-$name:_module"
6464
}
6565

66-
_add_module "http-naxsi" "1.5" "https://github.com/wargio/naxsi" "naxsi_src"
66+
_add_module "http-naxsi" "1.6" "https://github.com/wargio/naxsi" "naxsi_src"
6767
_naxsi_provides="$pkgname-naxsi" # for backward compatibility
6868

6969
prepare() {

distros/alpine/1.22.0-r1/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _add_module() {
6262
subpackages="$subpackages $pkgname-mod-$name:_module"
6363
}
6464

65-
_add_module "http-naxsi" "1.5" "https://github.com/wargio/naxsi" "naxsi_src"
65+
_add_module "http-naxsi" "1.6" "https://github.com/wargio/naxsi" "naxsi_src"
6666
_naxsi_provides="$pkgname-naxsi" # for backward compatibility
6767

6868
prepare() {

distros/alpine/1.22.1-r0/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ _add_module() {
6262
subpackages="$subpackages $pkgname-mod-$name:_module"
6363
}
6464

65-
_add_module "http-naxsi" "1.5" "https://github.com/wargio/naxsi" "naxsi_src"
65+
_add_module "http-naxsi" "1.6" "https://github.com/wargio/naxsi" "naxsi_src"
6666
_naxsi_provides="$pkgname-naxsi" # for backward compatibility
6767

6868
prepare() {

distros/alpine/1.24.0-r3/APKBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ _add_module() {
6464
subpackages="$subpackages $pkgname-mod-$name:_module"
6565
}
6666

67-
_add_module "http-naxsi" "1.5" "https://github.com/wargio/naxsi" "naxsi_src"
67+
_add_module "http-naxsi" "1.6" "https://github.com/wargio/naxsi" "naxsi_src"
6868
_naxsi_provides="$pkgname-naxsi" # for backward compatibility
6969

7070
prepare() {

0 commit comments

Comments
 (0)