Skip to content

Commit 1b6e43b

Browse files
MaffoochDefectDojo release botjfyuencneillvalentijnscholten
authored
Release: Merge release into master from: release/2.46.1 (#12402)
* Update versions in application files * ui: fix "retrieve my username" typo (#12368) * Minor Semgrep connector docs tweaks (#12373) * jira push: log inactive/verified message to debug (#12376) * helm chart publisher: use proper ref for checkout (#12392) * tags: prevent validation from removing tags (#12400) * tags: prevent validation from removing tags * tags: prevent validation from removing tags smoke test * tags: prevent validation from removing tags smoke test * tags: prevent validation from removing tags remove ui test * Update versions in application files --------- Co-authored-by: DefectDojo release bot <[email protected]> Co-authored-by: Cody Maffucci <[email protected]> Co-authored-by: Jean-François YUEN <[email protected]> Co-authored-by: Charles Neill <[email protected]> Co-authored-by: valentijnscholten <[email protected]>
2 parents 05a92af + 37df1f1 commit 1b6e43b

File tree

10 files changed

+27
-12
lines changed

10 files changed

+27
-12
lines changed

.github/workflows/release-x-manual-helm-chart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Checkout
3131
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
with:
33-
ref: master
33+
ref: ${{ inputs.release_number }}
3434
fetch-depth: 0
3535

3636
# This action is deprecated. Not sure if it is even being used anymore...

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

docs/content/en/connecting_your_tools/connectors/connectors_tool_reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,19 @@ This connector uses the Probely REST API to fetch data.
133133
You can find an API key under the User \> API Keys menu in Probely.
134134
See [Probely documentation](https://help.probely.com/en/articles/8592281-how-to-generate-an-api-key) for more info.
135135

136-
## **SemGrep**
136+
## **Semgrep**
137137

138-
This connector uses the SemGrep REST API to fetch data.
138+
This connector uses the Semgrep REST API to fetch data.
139139

140140
#### Connector Mappings
141141

142-
Enter https://semgrep.dev/api/v1/in the **Location** field.
142+
Enter `https://semgrep.dev/api/v1/` in the **Location** field.
143143

144144
1. Enter a valid API key in the **Secret** field. You can find this on the Tokens page:
145145
146146
"Settings" in the left navbar \> Tokens \> Create new token ([https://semgrep.dev/orgs/\-/settings/tokens](https://semgrep.dev/orgs/-/settings/tokens))
147147

148-
See [SemGrep documentation](https://semgrep.dev/docs/semgrep-cloud-platform/semgrep-api/#tag__badge-list) for more info.
148+
See [Semgrep documentation](https://semgrep.dev/docs/semgrep-cloud-platform/semgrep-api/#tag__badge-list) for more info.
149149

150150
## SonarQube
151151

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: F401
66

7-
__version__ = "2.46.0"
7+
__version__ = "2.46.1"
88
__url__ = "https://github.com/DefectDojo/django-DefectDojo"
99
__docs__ = "https://documentation.defectdojo.com"

dojo/finding/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def get_jira_data(self, finding: Finding):
658658
) = jira_helper.can_be_pushed_to_jira(finding)
659659
# Check the error code
660660
if error_code:
661-
logger.error(error_code)
661+
logger.debug(error_code)
662662

663663
return {
664664
"can_be_pushed_to_jira": can_be_pushed_to_jira,

dojo/forms.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ class Meta:
341341

342342
def clean_tags(self):
343343
tag_validator(self.cleaned_data.get("tags"))
344+
return self.cleaned_data.get("tags")
344345

345346

346347
class DeleteProductForm(forms.ModelForm):
@@ -608,6 +609,7 @@ def clean(self):
608609

609610
def clean_tags(self):
610611
tag_validator(self.cleaned_data.get("tags"))
612+
return self.cleaned_data.get("tags")
611613

612614
# date can only be today or in the past, not the future
613615
def clean_scan_date(self):
@@ -717,6 +719,7 @@ def clean(self):
717719

718720
def clean_tags(self):
719721
tag_validator(self.cleaned_data.get("tags"))
722+
return self.cleaned_data.get("tags")
720723

721724
# date can only be today or in the past, not the future
722725
def clean_scan_date(self):
@@ -1033,6 +1036,7 @@ def is_valid(self):
10331036

10341037
def clean_tags(self):
10351038
tag_validator(self.cleaned_data.get("tags"))
1039+
return self.cleaned_data.get("tags")
10361040

10371041
class Meta:
10381042
model = Engagement
@@ -1091,6 +1095,7 @@ class Meta:
10911095

10921096
def clean_tags(self):
10931097
tag_validator(self.cleaned_data.get("tags"))
1098+
return self.cleaned_data.get("tags")
10941099

10951100

10961101
class DeleteTestForm(forms.ModelForm):
@@ -1190,6 +1195,7 @@ def clean(self):
11901195

11911196
def clean_tags(self):
11921197
tag_validator(self.cleaned_data.get("tags"))
1198+
return self.cleaned_data.get("tags")
11931199

11941200
class Meta:
11951201
model = Finding
@@ -1270,6 +1276,7 @@ def clean(self):
12701276

12711277
def clean_tags(self):
12721278
tag_validator(self.cleaned_data.get("tags"))
1279+
return self.cleaned_data.get("tags")
12731280

12741281
class Meta:
12751282
model = Finding
@@ -1330,6 +1337,7 @@ def clean(self):
13301337

13311338
def clean_tags(self):
13321339
tag_validator(self.cleaned_data.get("tags"))
1340+
return self.cleaned_data.get("tags")
13331341

13341342
class Meta:
13351343
model = Finding
@@ -1455,6 +1463,7 @@ def clean(self):
14551463

14561464
def clean_tags(self):
14571465
tag_validator(self.cleaned_data.get("tags"))
1466+
return self.cleaned_data.get("tags")
14581467

14591468
def _post_clean(self):
14601469
super()._post_clean()
@@ -1534,6 +1543,7 @@ def clean(self):
15341543

15351544
def clean_tags(self):
15361545
tag_validator(self.cleaned_data.get("tags"))
1546+
return self.cleaned_data.get("tags")
15371547

15381548
class Meta:
15391549
fields = ["title", "cwe", "vulnerability_ids", "cvssv3", "severity", "description", "mitigation", "impact", "references", "tags"]
@@ -1567,6 +1577,7 @@ class Meta:
15671577

15681578
def clean_tags(self):
15691579
tag_validator(self.cleaned_data.get("tags"))
1580+
return self.cleaned_data.get("tags")
15701581

15711582

15721583
class DeleteFindingTemplateForm(forms.ModelForm):
@@ -1623,6 +1634,7 @@ def clean(self):
16231634

16241635
def clean_tags(self):
16251636
tag_validator(self.cleaned_data.get("tags"))
1637+
return self.cleaned_data.get("tags")
16261638

16271639
class Meta:
16281640
model = Finding
@@ -1676,6 +1688,7 @@ def clean(self):
16761688

16771689
def clean_tags(self):
16781690
tag_validator(self.cleaned_data.get("tags"))
1691+
return self.cleaned_data.get("tags")
16791692

16801693

16811694
class AddEndpointForm(forms.Form):
@@ -1742,6 +1755,7 @@ def clean(self):
17421755

17431756
def clean_tags(self):
17441757
tag_validator(self.cleaned_data.get("tags"))
1758+
return self.cleaned_data.get("tags")
17451759

17461760

17471761
class DeleteEndpointForm(forms.ModelForm):

dojo/locale/en/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3198,7 +3198,7 @@ msgid ""
31983198
msgstr ""
31993199

32003200
#: dojo/templates/dojo/forgot_username.html
3201-
msgid "Retreive my username"
3201+
msgid "Retrieve my username"
32023202
msgstr ""
32033203

32043204
#: dojo/templates/dojo/forgot_username_done.html

dojo/templates/login/forgot_username.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h3>{% translate 'Retrieve Username' %}</h3>
99
{% include "dojo/form_fields.html" with form=form %}
1010
<div class="form-group">
1111
<div class="col-sm-offset-1 col-sm-1">
12-
<button id="reset-password" class="btn btn-success">{% translate 'Retreive my username' %}</button>
12+
<button id="reset-password" class="btn btn-success">{% translate 'Retrieve my username' %}</button>
1313
</div>
1414
</div>
1515
</fieldset>

dojo/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,4 +2677,5 @@ def tag_validator(value: str | list[str], exception_class: Callable = Validation
26772677
error_messages.append(f"Value must be a string or list of strings: {value} - {type(value)}.")
26782678

26792679
if error_messages:
2680+
logger.debug(f"Tag validation failed: {error_messages}")
26802681
raise exception_class(error_messages)

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.46.0"
2+
appVersion: "2.46.1"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.6.185
5+
version: 1.6.186
66
icon: https://www.defectdojo.org/img/favicon.ico
77
maintainers:
88
- name: madchap

0 commit comments

Comments
 (0)