Skip to content

Commit 659f50b

Browse files
authored
Merge pull request #10484 from DefectDojo/release/2.36.0
Release: Merge release into master from: release/2.36.0
2 parents 81c123e + 2d2f2ab commit 659f50b

File tree

79 files changed

+1693
-1042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1693
-1042
lines changed

.github/workflows/build-docker-images-for-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Build
3737
id: docker_build
38-
uses: docker/build-push-action@v5
38+
uses: docker/build-push-action@v6
3939
timeout-minutes: 10
4040
with:
4141
context: .

.github/workflows/integration-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
"tests/tool_config.py",
3737
"openapi-validatator",
3838
]
39-
profile: ["mysql-rabbitmq", "postgres-redis"]
39+
profile: ["postgres-rabbitmq", "postgres-redis"]
4040
os: [alpine, debian]
4141
fail-fast: false
4242

@@ -59,10 +59,10 @@ jobs:
5959
- name: Set integration-test mode
6060
run: ln -s docker-compose.override.integration_tests.yml docker-compose.override.yml
6161

62-
# phased startup with MySQL and RabbitMQ so we can use the exit code from integrationtest container
63-
- name: Start Dojo MySQL + RabbitMQ
64-
if: matrix.profile == 'mysql-rabbitmq'
65-
run: docker compose --profile ${{ matrix.profile }} --env-file ./docker/environments/${{ matrix.profile }}.env up --no-deps -d mysql nginx celerybeat celeryworker mailhog uwsgi rabbitmq
62+
# phased startup with PostgreSQL and RabbitMQ so we can use the exit code from integrationtest container
63+
- name: Start Dojo PostgreSQL + RabbitMQ
64+
if: matrix.profile == 'postgres-rabbitmq'
65+
run: docker compose --profile ${{ matrix.profile }} --env-file ./docker/environments/${{ matrix.profile }}.env up --no-deps -d postgres nginx celerybeat celeryworker mailhog uwsgi rabbitmq
6666
env:
6767
DJANGO_VERSION: ${{ matrix.os }}
6868
NGINX_VERSION: ${{ matrix.os }}

.github/workflows/release-x-manual-docker-containers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
- name: Build and push images with debian
6565
if: ${{ matrix.os == 'debian' }}
66-
uses: docker/build-push-action@v5
66+
uses: docker/build-push-action@v6
6767
env:
6868
REPO_ORG: ${{ env.repoorg }}
6969
docker-image: ${{ matrix.docker-image }}
@@ -77,7 +77,7 @@ jobs:
7777

7878
- name: Build and push images with alpine
7979
if: ${{ matrix.os == 'alpine' }}
80-
uses: docker/build-push-action@v5
80+
uses: docker/build-push-action@v6
8181
env:
8282
REPO_ORG: ${{ env.repoorg }}
8383
docker-image: ${{ matrix.docker-image }}

.github/workflows/rest-framework-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ jobs:
3434
run: docker/setEnv.sh unit_tests_cicd
3535

3636
# phased startup so we can use the exit code from unit test container
37-
- name: Start MySQL
38-
run: docker compose --env-file ./docker/environments/mysql-redis.env up -d mysql
37+
- name: Start Postgres
38+
run: docker compose --env-file ./docker/environments/postgres-redis.env up -d postgres
3939

4040
# no celery or initializer needed for unit tests
4141
- name: Unit tests
4242
timeout-minutes: 10
43-
run: docker compose --profile mysql-redis --env-file ./docker/environments/mysql-redis.env up --no-deps --exit-code-from uwsgi uwsgi
43+
run: docker compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env up --no-deps --exit-code-from uwsgi uwsgi
4444
env:
4545
DJANGO_VERSION: ${{ matrix.os }}
4646

4747
- name: Logs
4848
if: failure()
49-
run: docker compose --profile mysql-redis --env-file ./docker/environments/mysql-redis.env logs --tail="2500" uwsgi
49+
run: docker compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env logs --tail="2500" uwsgi
5050

5151
- name: Shutdown
5252
if: always()
53-
run: docker compose --profile mysql-redis --env-file ./docker/environments/mysql-redis.env down
53+
run: docker compose --profile postgres-redis --env-file ./docker/environments/postgres-redis.env down

Dockerfile.nginx-alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ COPY manage.py ./
140140
COPY dojo/ ./dojo/
141141
RUN env DD_SECRET_KEY='.' python3 manage.py collectstatic --noinput && true
142142

143-
FROM nginx:1.27.0-alpine@sha256:69f8c2c72671490607f52122be2af27d4fc09657ff57e42045801aa93d2090f7
143+
FROM nginx:1.27.0-alpine@sha256:a45ee5d042aaa9e81e013f97ae40c3dda26fbe98f22b6251acdf28e579560d55
144144
ARG uid=1001
145145
ARG appuser=defectdojo
146146
COPY --from=collectstatic /app/static/ /usr/share/nginx/html/static/

Dockerfile.nginx-debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ COPY dojo/ ./dojo/
7575

7676
RUN env DD_SECRET_KEY='.' python3 manage.py collectstatic --noinput && true
7777

78-
FROM nginx:1.27.0-alpine@sha256:69f8c2c72671490607f52122be2af27d4fc09657ff57e42045801aa93d2090f7
78+
FROM nginx:1.27.0-alpine@sha256:a45ee5d042aaa9e81e013f97ae40c3dda26fbe98f22b6251acdf28e579560d55
7979
ARG uid=1001
8080
ARG appuser=defectdojo
8181
COPY --from=collectstatic /app/static/ /usr/share/nginx/html/static/

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "defectdojo",
3-
"version": "2.35.4",
3+
"version": "2.36.0",
44
"license" : "BSD-3-Clause",
55
"private": true,
66
"dependencies": {

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ services:
141141
volumes:
142142
- defectdojo_data:/var/lib/mysql
143143
postgres:
144-
image: postgres:16.3-alpine@sha256:e89da2c083a5405943408b6807cd1fd25dc9010c1294e30611b841778bedc653
144+
image: postgres:16.3-alpine@sha256:de3d7b6e4b5b3fe899e997579d6dfe95a99539d154abe03f0b6839133ed05065
145145
profiles:
146146
- postgres-rabbitmq
147147
- postgres-redis
@@ -159,7 +159,7 @@ services:
159159
volumes:
160160
- defectdojo_rabbitmq:/var/lib/rabbitmq
161161
redis:
162-
image: redis:7.2.5-alpine@sha256:0389bb8416d7c6ed065c25745179bf5d358e5d9472dd30a687ab36ffbb650262
162+
image: redis:7.2.5-alpine@sha256:de14eedfbd1fc871d0f5aa1773fd80743930e45354d035b6f3b551e7ffa44df8
163163
profiles:
164164
- mysql-redis
165165
- postgres-redis

docker/entrypoint-unit-tests-devDocker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ EOF
5353

5454
echo "Unit Tests"
5555
echo "------------------------------------------------------------"
56-
python3 manage.py test unittests -v 3 --keepdb --no-input
56+
python3 manage.py test unittests -v 3 --keepdb --no-input --shuffle
5757

5858
# you can select a single file to "test" unit tests
5959
# python3 manage.py test unittests.tools.test_npm_audit_scan_parser.TestNpmAuditParser --keepdb -v 3

docker/entrypoint-unit-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ python3 manage.py migrate
7979

8080
echo "Unit Tests"
8181
echo "------------------------------------------------------------"
82-
python3 manage.py test unittests -v 3 --keepdb --no-input
82+
python3 manage.py test unittests -v 3 --keepdb --no-input --shuffle

0 commit comments

Comments
 (0)