Skip to content

Commit 177f2fb

Browse files
authored
Merge pull request DefectDojo#7382 from DefectDojo/release/2.18.1
Release: Merge release into master from: release/2.18.1
2 parents bd9e52d + 57d77d0 commit 177f2fb

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

.github/workflows/test-helm-chart.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- master
77
- dev
8+
- bugfix
89
- release/**
910
- hotfix/**
1011

@@ -58,7 +59,7 @@ jobs:
5859
# x.y.z gets bumped automatically when doing a release
5960
- name: Run chart-testing (lint)
6061
run: ct lint --config ct.yaml --target-branch ${{ env.ct-branch }} --check-version-increment=true
61-
if: ${{ env.changed == 'true' && env.ct-branch != 'dev' }}
62+
if: ${{ env.changed == 'true' && env.ct-branch != 'dev' && env.ct-branch != 'bugfix' }}
6263

6364
# run all checks but version increment always when something changed
6465
- name: Run chart-testing (lint)

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

dojo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# Django starts so that shared_task will use this app.
55
from .celery import app as celery_app # noqa
66

7-
__version__ = '2.18.0'
7+
__version__ = '2.18.1'
88
__url__ = 'https://github.com/DefectDojo/django-DefectDojo'
99
__docs__ = 'https://documentation.defectdojo.com'

dojo/importers/reimporter/utils.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,14 @@ def update_endpoint_status(existing_finding, new_finding, user):
6161
# using `.all()` will mark as mitigated also `endpoint_status` with flags `false_positive`, `out_of_scope` and `risk_accepted`. This is a known issue. This is not a bug. This is a future.
6262
existing_finding_endpoint_status_list = existing_finding.status_finding.all()
6363
new_finding_endpoints_list = new_finding.unsaved_endpoints
64-
endpoint_status_to_mitigate = list(
65-
filter(
66-
lambda existing_finding_endpoint_status: existing_finding_endpoint_status.endpoint not in new_finding_endpoints_list,
67-
existing_finding_endpoint_status_list)
68-
)
64+
if new_finding.is_mitigated:
65+
endpoint_status_to_mitigate = existing_finding_endpoint_status_list
66+
else:
67+
endpoint_status_to_mitigate = list(
68+
filter(
69+
lambda existing_finding_endpoint_status: existing_finding_endpoint_status.endpoint not in new_finding_endpoints_list,
70+
existing_finding_endpoint_status_list)
71+
)
6972
# Determine if this can be run async
7073
if settings.ASYNC_FINDING_IMPORT:
7174
chunk_list = importer_utils.chunk_list(endpoint_status_to_mitigate)

dojo/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,7 @@ def sla_days_remaining(self):
26552655
def sla_deadline(self):
26562656
days_remaining = self.sla_days_remaining()
26572657
if days_remaining:
2658-
return self.date + relativedelta(days=days_remaining)
2658+
return get_current_date() + relativedelta(days=days_remaining)
26592659
return None
26602660

26612661
def github(self):

dojo/tools/bugcrowd/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_findings(self, filename, test):
3939
pre_description = self.split_description(row.get('description', None))
4040
Description = pre_description.get('description', '') + '\n\n' + pre_description.get('poc', '')
4141
Description += row.get('extra_info') + '\n\n' if row.get('extra_info', None) else ''
42-
Description += 'BugCrowd Reference Nubmer: ' + row.get('reference_number') + '\n' if row.get('reference_number', None) else ''
42+
Description += 'BugCrowd Reference Number: ' + row.get('reference_number') + '\n' if row.get('reference_number', None) else ''
4343
Description += 'Bug URL: ' + url + '\n' if url else ''
4444
Description += 'Bug Source: ' + row.get('source') + '\n' if row.get('source', None) else ''
4545
Description += 'BugCrowd User: ' + row.get('username') + '\n' if row.get('username', None) else ''
@@ -49,7 +49,7 @@ def get_findings(self, filename, test):
4949
Description += 'Closed at: ' + row.get('closed_at') + '\n' if row.get('closed_at', None) else ''
5050
Description += 'Target name: ' + row.get('target_name') + '\n' if row.get('target_name', None) else ''
5151
Description += 'Target category: ' + row.get('target_category') + '\n' if row.get('target_category', None) else ''
52-
References = 'BugCrowd Reference Nubmer: ' + row.get('reference_number') + '\n' if row.get('reference_number', None) else ''
52+
References = 'BugCrowd Reference Number: ' + row.get('reference_number') + '\n' if row.get('reference_number', None) else ''
5353
References += row.get('vulnerability_ids', '')
5454

5555
finding.title = row.get('title', '')

helm/defectdojo/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: "2.18.0"
2+
appVersion: "2.18.1"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.6.48
5+
version: 1.6.49
66
icon: https://www.defectdojo.org/img/favicon.ico
77
maintainers:
88
- name: madchap

0 commit comments

Comments
 (0)