Skip to content

Commit 158cde5

Browse files
authored
Merge pull request #10535 from DefectDojo/release/2.36.1
Release: Merge release into master from: release/2.36.1
2 parents 24c804c + 4ea96c0 commit 158cde5

42 files changed

Lines changed: 350 additions & 301 deletions

Some content is hidden

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

.github/renovate.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
"dependencyDashboardApproval": false,
77
"baseBranches": ["dev"],
88
"rebaseWhen": "conflicted",
9-
"ignorePaths": ["requirements.txt", "components/package.json", "components/package-lock.json", "dojo/components/yarn.lock", "dojo/components/package.json", "Dockerfile**"],
9+
"ignorePaths": ["requirements.txt", "requirements-lint.txt", "components/package.json", "components/package-lock.json", "dojo/components/yarn.lock", "dojo/components/package.json", "Dockerfile**"],
10+
"ignoreDeps": [
11+
"mysql",
12+
"rabbitmq"
13+
],
1014
"packageRules": [{
1115
"packagePatterns": ["*"],
1216
"commitMessageExtra": "from {{currentVersion}} to {{#if isMajor}}v{{{newMajor}}}{{else}}{{#if isSingleVersion}}v{{{toVersion}}}{{else}}{{{newValue}}}{{/if}}{{/if}}",

.github/workflows/flake8.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/ruff.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,13 @@ name: Ruff Linter
22

33
on:
44
workflow_dispatch:
5-
pull_request_target:
65
push:
7-
6+
pull_request:
87
jobs:
98
ruff-linting:
109
runs-on: ubuntu-latest
1110
steps:
1211
- name: Checkout
13-
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
14-
uses: actions/checkout@v4
15-
# by default the pull_requst_target event checks out the base branch, i.e. dev
16-
# so we need to explicitly checkout the head of the PR
17-
# we use fetch-depth 0 to make sure the full history is checked out and we can compare against
18-
# the base commit (branch) of the PR
19-
# more info https://github.community/t/github-actions-are-severely-limited-on-prs/18179/16
20-
# we checkout merge_commit here as this contains all new code from dev also. we don't need to compare against base_commit
21-
with:
22-
persist-credentials: false
23-
fetch-depth: 0
24-
ref: refs/pull/${{ github.event.pull_request.number }}/merge
25-
# repository: ${{github.event.pull_request.head.repo.full_name}}
26-
27-
- name: Checkout
28-
# for non PR runs we just checkout the default, which is a sha on a branch probably
29-
if: github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
3012
uses: actions/checkout@v4
3113

3214
- name: Install Ruff Linter

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.36.0",
3+
"version": "2.36.1",
44
"license" : "BSD-3-Clause",
55
"private": true,
66
"dependencies": {

docker-compose.override.unit_tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
version: '3.8'
32
services:
43
nginx:
54
image: busybox:1.36.1-musl

docker-compose.override.unit_tests_cicd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ services:
1515
environment:
1616
PYTHONWARNINGS: error # We are strict about Warnings during testing
1717
DD_DEBUG: 'True'
18+
DD_LOG_LEVEL: 'ERROR'
1819
DD_TEST_DATABASE_NAME: ${DD_TEST_DATABASE_NAME}
1920
DD_DATABASE_NAME: ${DD_TEST_DATABASE_NAME}
2021
DD_DATABASE_ENGINE: ${DD_DATABASE_ENGINE}

docker/entrypoint-unit-tests-devDocker.sh

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

5454
echo "Unit Tests"
5555
echo "------------------------------------------------------------"
56-
python3 manage.py test unittests -v 3 --keepdb --no-input --shuffle
56+
python3 manage.py test unittests -v 3 --keepdb --no-input --failfast --shuffle --parallel --exclude-tag="non-parallel"
57+
python3 manage.py test unittests -v 3 --keepdb --no-input --failfast --shuffle --tag="non-parallel"
5758

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

docker/entrypoint-unit-tests.sh

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

8080
echo "Unit Tests"
8181
echo "------------------------------------------------------------"
82-
python3 manage.py test unittests -v 3 --keepdb --no-input --shuffle
82+
python3 manage.py test unittests -v 3 --keepdb --no-input --failfast --shuffle --parallel --exclude-tag="non-parallel"
83+
python3 manage.py test unittests -v 3 --keepdb --no-input --failfast --shuffle --tag="non-parallel"
84+

docs/config.dev.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ weight = 1
8585
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
8686
style = "dracula"
8787
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
88-
guessSyntax = "true"
88+
# Do not uncomment otherwise it breaks mermaid
89+
# guessSyntax = "true"
8990

9091
# Everything below this are Site Params
9192

@@ -198,3 +199,6 @@ enable = false
198199
url = "https://owasp.slack.com/archives/C014H3ZV9U6"
199200
icon = "fab fa-slack"
200201
desc = "Chat with other project developers"
202+
203+
[params.mermaid]
204+
enable = true

docs/config.master.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ weight = 1
8585
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
8686
style = "dracula"
8787
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
88-
guessSyntax = "true"
88+
# Do not uncomment otherwise it breaks mermaid
89+
# guessSyntax = "true"
8990

9091
# Everything below this are Site Params
9192

@@ -198,3 +199,6 @@ enable = false
198199
url = "https://owasp.slack.com/archives/C014H3ZV9U6"
199200
icon = "fab fa-slack"
200201
desc = "Chat with other project developers"
202+
203+
[params.mermaid]
204+
enable = true

0 commit comments

Comments
 (0)