File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ jobs:
21
21
- name : Checkout repository
22
22
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23
23
- name : Initialize CodeQL
24
- uses : github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
24
+ uses : github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
25
25
with :
26
26
languages : ${{ matrix.language }}
27
27
config-file : ./.github/codeql.yml
28
28
- name : Perform CodeQL Analysis
29
- uses : github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
29
+ uses : github/codeql-action/analyze@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
30
30
with :
31
31
category : " /language:${{matrix.language}}"
Original file line number Diff line number Diff line change 1
- FROM golang:1.23-alpine@sha256:13aaa4b92fd4dc81683816b4b62041442e9f685deeb848897ce78c5e2fb03af7 AS builder
1
+ FROM golang:1.23-alpine@sha256:04ec5618ca64098b8325e064aa1de2d3efbbd022a3ac5554d49d5ece99d41ad5 AS builder
2
2
3
3
WORKDIR /usr/src/app
4
4
@@ -11,7 +11,7 @@ COPY --chmod=644 crs.sh .
11
11
RUN apk add bash git && \
12
12
bash crs.sh Download
13
13
14
- FROM golang:1.23-alpine@sha256:13aaa4b92fd4dc81683816b4b62041442e9f685deeb848897ce78c5e2fb03af7
14
+ FROM golang:1.23-alpine@sha256:04ec5618ca64098b8325e064aa1de2d3efbbd022a3ac5554d49d5ece99d41ad5
15
15
16
16
COPY --from=builder --chown=0:0 /usr/local/bin/bw-coraza /usr/local/bin/bw-coraza
17
17
Original file line number Diff line number Diff line change 12
12
sys_path .append (deps_path )
13
13
14
14
from jinja2 import Environment , FileSystemLoader
15
+ from common_utils import get_version # type: ignore
15
16
from logger import setup_logger # type: ignore
16
17
from jobs import Job # type: ignore
17
18
36
37
LOGGER .info ("CrowdSec is not activated, skipping job..." )
37
38
sys_exit (status )
38
39
39
- JOB = Job (LOGGER , __file__ )
40
+ bunkerweb_version_split = get_version ().split ("." )
41
+ if len (bunkerweb_version_split ) > 1 and int (bunkerweb_version_split [1 ]) < 6 :
42
+ JOB = Job (LOGGER )
43
+ else :
44
+ JOB = Job (LOGGER , __file__ )
40
45
41
46
# Generate content
42
47
jinja_env = Environment (loader = FileSystemLoader (PLUGIN_PATH .joinpath ("misc" )))
You can’t perform that action at this time.
0 commit comments