@@ -74,8 +74,10 @@ RUN apt-get update \
7474# SEE: https://github.com/coreruleset/modsecurity-crs-docker/blob/main/nginx/Dockerfile
7575FROM nginx:1.29.3 AS modsecurity-builder
7676
77- ARG MODSECURITY_VERSION="3.0.14"
78- ARG MODSECURITY_NGINX_VERSION="1.0.4"
77+ # renovate: datasource=github-releases depName=ModSecurity packageName=owasp-modsecurity/ModSecurity
78+ ARG MODSECURITY_VERSION="v3.0.14"
79+ # renovate: datasource=github-releases depName=ModSecurity-nginx packageName=owasp-modsecurity/ModSecurity-nginx
80+ ARG MODSECURITY_NGINX_VERSION="v1.0.4"
7981
8082USER root
8183
@@ -110,7 +112,7 @@ RUN set -eux; \
110112WORKDIR /sources
111113
112114RUN set -eux; \
113- git clone https://github.com/owasp-modsecurity/ModSecurity.git --branch "v ${MODSECURITY_VERSION}" --depth 1 --recursive; \
115+ git clone https://github.com/owasp-modsecurity/ModSecurity.git --branch "${MODSECURITY_VERSION}" --depth 1 --recursive; \
114116 cd ModSecurity; \
115117 ARCH=$(gcc -print-multiarch); \
116118 sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \
@@ -122,7 +124,7 @@ RUN set -eux; \
122124
123125RUN set -eux; \
124126 NGINX_VERSION=$(nginx -v 2>&1 | sed -E 's#.*nginx/([0-9.]+).*#\1 #' ); \
125- git clone https://github.com/owasp-modsecurity/ModSecurity-nginx.git --branch "v ${MODSECURITY_NGINX_VERSION}" --depth 1; \
127+ git clone https://github.com/owasp-modsecurity/ModSecurity-nginx.git --branch "${MODSECURITY_NGINX_VERSION}" --depth 1; \
126128 curl -sSL "https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -o nginx-${NGINX_VERSION}.tar.gz; \
127129 tar -xzf nginx-${NGINX_VERSION}.tar.gz; \
128130 cd ./nginx-${NGINX_VERSION}; \
0 commit comments