Skip to content

Commit e27e1b6

Browse files
committed
update crowdsec dependencies
1 parent 922c5cd commit e27e1b6

File tree

13 files changed

+372
-525
lines changed

13 files changed

+372
-525
lines changed

.github/workflows/build-binary-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
steps:
2121

2222
- name: Check out repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2424
with:
2525
fetch-depth: 0
2626

2727
- name: Set up Go
28-
uses: actions/setup-go@v5
28+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2929
with:
3030
go-version-file: go.mod
3131

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717

1818
steps:
1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
with:
2222
fetch-depth: 0
2323

2424
- name: Set up Go
25-
uses: actions/setup-go@v5
25+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2626
with:
2727
go-version-file: go.mod
2828

2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v3
30+
uses: github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
3131
with:
3232
languages: go, python
3333

@@ -43,4 +43,4 @@ jobs:
4343
only-new-issues: false
4444

4545
- name: Perform CodeQL Analysis
46-
uses: github/codeql-action/analyze@v3
46+
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: Update the release draft
2222
steps:
2323
# Drafts your next Release notes as Pull Requests are merged into "main"
24-
- uses: release-drafter/release-drafter@v6
24+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
2525
with:
2626
config-name: release-drafter.yml
2727
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml

.github/workflows/release_publish_docker-image.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
-
1919
name: Check out the repo
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
with:
2222
fetch-depth: 0
2323
-
@@ -43,27 +43,27 @@ jobs:
4343
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
4444
-
4545
name: Set up QEMU
46-
uses: docker/setup-qemu-action@v3
46+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
4747
-
4848
name: Set up Docker Buildx
49-
uses: docker/setup-buildx-action@v3
49+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5050
-
5151
name: Login to DockerHub
5252
if: github.event_name == 'release'
53-
uses: docker/login-action@v3
53+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
5454
with:
5555
username: ${{ secrets.DOCKER_USERNAME }}
5656
password: ${{ secrets.DOCKER_PASSWORD }}
5757

5858
- name: Login to GitHub Container Registry
59-
uses: docker/login-action@v3
59+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
6060
with:
6161
registry: ghcr.io
6262
username: ${{ github.repository_owner }}
6363
password: ${{ secrets.GITHUB_TOKEN }}
6464
-
6565
name: Build and push
66-
uses: docker/build-push-action@v5
66+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
6767
with:
6868
context: .
6969
file: ./Dockerfile

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
steps:
1818

1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
with:
2222
fetch-depth: 0
2323

2424
- name: Set up Go
25-
uses: actions/setup-go@v5
25+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2626
with:
2727
go-version-file: go.mod
2828

@@ -39,14 +39,14 @@ jobs:
3939
RICHGO_FORCE_COLOR: 1
4040

4141
- name: Install uv
42-
uses: astral-sh/setup-uv@v5
42+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
4343
with:
4444
version: 0.5.24
4545
enable-cache: true
4646
cache-dependency-glob: "test/uv.lock"
4747

4848
- name: "Set up Python"
49-
uses: actions/setup-python@v5
49+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
5050
with:
5151
python-version-file: "test/.python-version"
5252

@@ -74,7 +74,7 @@ jobs:
7474
# these need root
7575
sudo -E $(which uv) run pytest ./tests/install/no_crowdsec
7676
# these need a running crowdsec
77-
docker run -d --name crowdsec -e CI_TESTING=true -e DISABLE_ONLINE_API=true -p 8080:8080 -ti crowdsecurity/crowdsec
77+
docker run -d --name crowdsec -e CI_TESTING=true -e DISABLE_ONLINE_API=true -e CROWDSEC_BYPASS_DB_VOLUME_CHECK=true -p 8080:8080 -ti crowdsecurity/crowdsec
7878
install -m 0755 /dev/stdin /usr/local/bin/cscli <<'EOT'
7979
#!/bin/sh
8080
docker exec crowdsec cscli "$@"

.github/workflows/tests_deb.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ jobs:
1717
steps:
1818

1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
with:
2222
fetch-depth: 0
2323

2424
- name: Set up Go
25-
uses: actions/setup-go@v5
25+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2626
with:
2727
go-version-file: go.mod
2828

2929
- name: Install uv
30-
uses: astral-sh/setup-uv@v5
30+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
3131
with:
3232
version: 0.5.24
3333
enable-cache: true
3434
cache-dependency-glob: "test/uv.lock"
3535

3636
- name: "Set up Python"
37-
uses: actions/setup-python@v5
37+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3838
with:
3939
python-version-file: "test/.python-version"
4040

.github/workflows/update_docker_hub_doc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414

1515
-
1616
name: Check out the repo
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1818
if: ${{ github.repository_owner == 'crowdsecurity' }}
1919

2020
-
2121
name: Update docker hub README
22-
uses: peter-evans/dockerhub-description@v4
22+
uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
2323
if: ${{ github.repository_owner == 'crowdsecurity' }}
2424
with:
2525
username: ${{ secrets.DOCKER_USERNAME }}

go.mod

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,61 @@
11
module github.com/crowdsecurity/cs-custom-bouncer
22

3-
go 1.24.1
3+
go 1.25.2
44

55
require (
66
github.com/coreos/go-systemd/v22 v22.5.0
7-
github.com/crowdsecurity/crowdsec v1.6.8
8-
github.com/crowdsecurity/go-cs-bouncer v0.0.16
9-
github.com/crowdsecurity/go-cs-lib v0.0.16
10-
github.com/prometheus/client_golang v1.21.1
7+
github.com/crowdsecurity/crowdsec v1.7.1-rc4
8+
github.com/crowdsecurity/go-cs-bouncer v0.0.18
9+
github.com/crowdsecurity/go-cs-lib v0.0.23
10+
github.com/prometheus/client_golang v1.23.2
1111
github.com/sirupsen/logrus v1.9.3
12-
golang.org/x/sync v0.12.0
12+
golang.org/x/sync v0.17.0
1313
gopkg.in/natefinch/lumberjack.v2 v2.2.1
1414
gopkg.in/yaml.v3 v3.0.1
1515
)
1616

1717
require (
1818
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
1919
github.com/beorn7/perks v1.0.1 // indirect
20-
github.com/blackfireio/osinfo v1.0.5 // indirect
20+
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
2121
github.com/cespare/xxhash/v2 v2.3.0 // indirect
22+
github.com/corazawaf/coraza/v3 v3.3.3 // indirect
2223
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
23-
github.com/expr-lang/expr v1.16.9 // indirect
24-
github.com/fatih/color v1.18.0 // indirect
25-
github.com/go-openapi/analysis v0.21.4 // indirect
26-
github.com/go-openapi/errors v0.20.4 // indirect
27-
github.com/go-openapi/jsonpointer v0.20.0 // indirect
28-
github.com/go-openapi/jsonreference v0.20.2 // indirect
29-
github.com/go-openapi/loads v0.21.2 // indirect
30-
github.com/go-openapi/spec v0.20.9 // indirect
31-
github.com/go-openapi/strfmt v0.21.7 // indirect
32-
github.com/go-openapi/swag v0.22.4 // indirect
33-
github.com/go-openapi/validate v0.22.1 // indirect
34-
github.com/goccy/go-yaml v1.11.2 // indirect
24+
github.com/ebitengine/purego v0.8.4 // indirect
25+
github.com/expr-lang/expr v1.17.5 // indirect
26+
github.com/go-ole/go-ole v1.2.6 // indirect
27+
github.com/go-openapi/analysis v0.23.0 // indirect
28+
github.com/go-openapi/errors v0.22.2 // indirect
29+
github.com/go-openapi/jsonpointer v0.21.1 // indirect
30+
github.com/go-openapi/jsonreference v0.21.0 // indirect
31+
github.com/go-openapi/loads v0.22.0 // indirect
32+
github.com/go-openapi/spec v0.21.0 // indirect
33+
github.com/go-openapi/strfmt v0.23.0 // indirect
34+
github.com/go-openapi/swag v0.23.1 // indirect
35+
github.com/go-openapi/validate v0.24.0 // indirect
36+
github.com/goccy/go-yaml v1.18.0 // indirect
3537
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
3638
github.com/google/go-querystring v1.1.0 // indirect
39+
github.com/google/uuid v1.6.0 // indirect
3740
github.com/josharian/intern v1.0.0 // indirect
38-
github.com/klauspost/compress v1.17.11 // indirect
39-
github.com/mailru/easyjson v0.7.7 // indirect
40-
github.com/mattn/go-colorable v0.1.13 // indirect
41-
github.com/mattn/go-isatty v0.0.20 // indirect
41+
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
42+
github.com/mailru/easyjson v0.9.0 // indirect
4243
github.com/mitchellh/mapstructure v1.5.0 // indirect
4344
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4445
github.com/oklog/ulid v1.3.1 // indirect
45-
github.com/prometheus/client_model v0.6.1 // indirect
46-
github.com/prometheus/common v0.62.0 // indirect
47-
github.com/prometheus/procfs v0.15.1 // indirect
48-
go.mongodb.org/mongo-driver v1.12.1 // indirect
49-
golang.org/x/net v0.37.0 // indirect
50-
golang.org/x/sys v0.31.0 // indirect
51-
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
52-
google.golang.org/protobuf v1.36.3 // indirect
46+
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
47+
github.com/prometheus/client_model v0.6.2 // indirect
48+
github.com/prometheus/common v0.66.1 // indirect
49+
github.com/prometheus/procfs v0.17.0 // indirect
50+
github.com/shirou/gopsutil/v4 v4.25.8 // indirect
51+
github.com/tklauser/go-sysconf v0.3.15 // indirect
52+
github.com/tklauser/numcpus v0.10.0 // indirect
53+
github.com/yusufpapurcu/wmi v1.2.4 // indirect
54+
go.mongodb.org/mongo-driver v1.17.4 // indirect
55+
go.yaml.in/yaml/v2 v2.4.2 // indirect
56+
golang.org/x/net v0.44.0 // indirect
57+
golang.org/x/sys v0.36.0 // indirect
58+
google.golang.org/protobuf v1.36.8 // indirect
5359
gopkg.in/tomb.v2 v2.0.0-20161208151619-d5d1b5820637 // indirect
5460
gopkg.in/yaml.v2 v2.4.0 // indirect
5561
)

0 commit comments

Comments
 (0)