Skip to content

Commit 7c70d96

Browse files
authored
Merge pull request #11189 from DefectDojo/release/2.40.0
Release: Merge release into master from: release/2.40.0
2 parents 3cea4a5 + 3efa7df commit 7c70d96

130 files changed

Lines changed: 5230 additions & 876 deletions

File tree

Some content is hidden

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

.github/workflows/k8s-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@v4
3636

3737
- name: Setup Minikube
38-
uses: manusa/actions-setup-minikube@v2.12.0
38+
uses: manusa/actions-setup-minikube@v2.13.0
3939
with:
4040
minikube version: 'v1.33.1'
4141
kubernetes version: ${{ matrix.k8s }}

Dockerfile.integration-tests-debian

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

22
# code: language=Dockerfile
33

4-
FROM openapitools/openapi-generator-cli:v7.8.0@sha256:c409bfa9b276faf27726d2884b859d18269bf980cb63546e80b72f3b2648c492 AS openapitools
4+
FROM openapitools/openapi-generator-cli:v7.9.0@sha256:bb32f5f0c9f5bdbb7b00959e8009de0230aedc200662701f05fc244c36f967ba AS openapitools
55
FROM python:3.11.9-slim-bookworm@sha256:8c1036ec919826052306dfb5286e4753ffd9d5f6c24fbc352a5399c3b405b57e AS build
66
WORKDIR /app
77
RUN \

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:208b70eefac13ee9be00e486f79c695b15cef861c680527171a27d253d834be9
143+
FROM nginx:1.27.2-alpine@sha256:2140dad235c130ac861018a4e13a6bc8aea3a35f3a40e20c1b060d51a7efd250
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
@@ -73,7 +73,7 @@ COPY dojo/ ./dojo/
7373

7474
RUN env DD_SECRET_KEY='.' python3 manage.py collectstatic --noinput && true
7575

76-
FROM nginx:1.27.0-alpine@sha256:208b70eefac13ee9be00e486f79c695b15cef861c680527171a27d253d834be9
76+
FROM nginx:1.27.2-alpine@sha256:2140dad235c130ac861018a4e13a6bc8aea3a35f3a40e20c1b060d51a7efd250
7777
ARG uid=1001
7878
ARG appuser=defectdojo
7979
COPY --from=collectstatic /app/static/ /usr/share/nginx/html/static/

components/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "defectdojo",
3-
"version": "2.39.4",
3+
"version": "2.40.0",
44
"license" : "BSD-3-Clause",
55
"private": true,
66
"dependencies": {
@@ -26,7 +26,7 @@
2626
"google-code-prettify": "^1.0.0",
2727
"jquery": "^3.7.1",
2828
"jquery-highlight": "3.5.0",
29-
"jquery-ui": "1.14.0",
29+
"jquery-ui": "1.14.1",
3030
"jquery.cookie": "1.4.1",
3131
"jquery.flot.tooltip": "^0.9.0",
3232
"jquery.hotkeys": "jeresig/jquery.hotkeys#master",
@@ -35,7 +35,7 @@
3535
"metismenu": "~3.0.7",
3636
"moment": "^2.30.1",
3737
"morris.js": "morrisjs/morris.js",
38-
"pdfmake": "^0.2.13",
38+
"pdfmake": "^0.2.14",
3939
"startbootstrap-sb-admin-2": "1.0.7"
4040
},
4141
"engines": {

components/yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,10 @@ jquery-highlight@3.5.0:
678678
dependencies:
679679
jquery ">= 1.0.0"
680680

681-
jquery-ui@1.14.0:
682-
version "1.14.0"
683-
resolved "https://registry.yarnpkg.com/jquery-ui/-/jquery-ui-1.14.0.tgz#b75d417826f0bab38125f907356d2e3313a9c6d5"
684-
integrity sha512-mPfYKBoRCf0MzaT2cyW5i3IuZ7PfTITaasO5OFLAQxrHuI+ZxruPa+4/K1OMNT8oElLWGtIxc9aRbyw20BKr8g==
681+
jquery-ui@1.14.1:
682+
version "1.14.1"
683+
resolved "https://registry.yarnpkg.com/jquery-ui/-/jquery-ui-1.14.1.tgz#ba342ea3ffff662b787595391f607d923313e040"
684+
integrity sha512-DhzsYH8VeIvOaxwi+B/2BCsFFT5EGjShdzOcm5DssWjtcpGWIMsn66rJciDA6jBruzNiLf1q0KvwMoX1uGNvnQ==
685685
dependencies:
686686
jquery ">=1.12.0 <5.0.0"
687687

@@ -824,10 +824,10 @@ path-parse@^1.0.7:
824824
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
825825
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
826826

827-
pdfmake@^0.2.13:
828-
version "0.2.13"
829-
resolved "https://registry.yarnpkg.com/pdfmake/-/pdfmake-0.2.13.tgz#ea43fe9f0c8de1e5ec7b08486d6f4f8bbb8619e4"
830-
integrity sha512-qeVE9Bzjm0oPCitH4/HYM/XCGTwoeOAOVAXPnV3s0kpPvTLkTF/bAF4jzorjkaIhXGQhzYk6Xclt0hMDYLY93w==
827+
pdfmake@^0.2.14:
828+
version "0.2.14"
829+
resolved "https://registry.yarnpkg.com/pdfmake/-/pdfmake-0.2.14.tgz#a257a393b54917218add829bff8e490be21e8077"
830+
integrity sha512-x9gXFAY37/CAC/WaZB/683E4Pi0cVW/RMTTNxMpe4I2kRsKv8AE3Pz6+n7iTfn+84/GtSg99BjZkYh7oGFCKmg==
831831
dependencies:
832832
"@foliojs-fork/linebreak" "^1.1.1"
833833
"@foliojs-fork/pdfkit" "^0.14.0"

docs/assets/icons/logo.svg

Lines changed: 15 additions & 244 deletions
Loading

docs/config.dev.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ weight = 1
7777
pre = "<i class='fab fa-github'></i>"
7878
url = "https://github.com/DefectDojo/django-DefectDojo"
7979

80+
[[menu.main]]
81+
name = "Knowledge Base"
82+
weight = 50
83+
pre = "<i class='fas fa-atlas'></i>"
84+
url = "https://support.defectdojo.com"
85+
8086
[markup]
8187
[markup.goldmark]
8288
[markup.goldmark.renderer]

docs/config.master.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ weight = 1
7777
pre = "<i class='fab fa-github'></i>"
7878
url = "https://github.com/DefectDojo/django-DefectDojo"
7979

80+
[[menu.main]]
81+
name = "Knowledge Base"
82+
weight = 50
83+
pre = "<i class='fas fa-atlas'></i>"
84+
url = "https://support.defectdojo.com"
85+
8086
[markup]
8187
[markup.goldmark]
8288
[markup.goldmark.renderer]

docs/content/en/contributing/how-to-write-a-parser.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ All commands assume that you're located at the root of the django-DefectDojo clo
1616
- It's advised that you create a dedicated branch for your development, such as `git checkout -b parser-name`.
1717

1818
It is easiest to use the docker compose deployment as it has hot-reload capbility for uWSGI.
19-
Set up your environment to use the debug environment:
19+
Set up your environment to use the dev environment:
2020

21-
`$ docker/setEnv.sh debug`
21+
`$ docker/setEnv.sh dev`
2222

2323
Please have a look at [DOCKER.md](https://github.com/DefectDojo/django-DefectDojo/blob/master/readme-docs/DOCKER.md) for more details.
2424

@@ -294,12 +294,24 @@ This local command will launch the unit test for your new parser
294294
$ docker compose exec uwsgi bash -c 'python manage.py test unittests.tools.<your_unittest_py_file>.<main_class_name> -v2'
295295
{{< /highlight >}}
296296

297+
or like this:
298+
299+
{{< highlight bash >}}
300+
$ ./dc-unittest.sh --test-case unittests.tools.<your_unittest_py_file>.<main_class_name>
301+
{{< /highlight >}}
302+
297303
Example for the blackduck hub parser:
298304

299305
{{< highlight bash >}}
300306
$ docker compose exec uwsgi bash -c 'python manage.py test unittests.tools.test_blackduck_csv_parser.TestBlackduckHubParser -v2'
301307
{{< /highlight >}}
302308

309+
or like this:
310+
311+
{{< highlight bash >}}
312+
$ ./dc-unittest.sh --test-case unittests.tools.test_blackduck_csv_parser.TestBlackduckHubParser
313+
{{< /highlight >}}
314+
303315
{{% alert title="Information" color="info" %}}
304316
If you want to run all unit tests, simply run `$ docker compose exec uwsgi bash -c 'python manage.py test unittests -v2'`
305317
{{% /alert %}}

0 commit comments

Comments
 (0)