Skip to content

Commit aa341fa

Browse files
Merge branch 'dev' into fix--helm-chart
2 parents 42c5f85 + 3352897 commit aa341fa

File tree

69 files changed

+12189
-363
lines changed

Some content is hidden

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

69 files changed

+12189
-363
lines changed

.github/workflows/close-stale.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,24 @@ jobs:
1515
close-stale:
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: Close issues and PRs that are pending closure
19+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
20+
with:
21+
# Disable automatic stale marking - only close manually labeled items
22+
days-before-stale: -1
23+
days-before-close: 7
24+
stale-issue-label: 'pending-closure'
25+
stale-pr-label: 'pending-closure'
26+
close-issue-message: 'This issue has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
27+
close-pr-message: 'This PR has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
28+
1829
- name: Close stale issues and PRs
19-
uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
30+
uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
2031
with:
2132
# Disable automatic stale marking - only close manually labeled items
2233
days-before-stale: -1
2334
days-before-close: 7
2435
stale-issue-label: 'stale'
2536
stale-pr-label: 'stale'
26-
close-issue-message: 'This issue has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
27-
close-pr-message: 'This PR has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
37+
close-issue-message: 'This issue has been automatically closed because it was labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
38+
close-pr-message: 'This PR has been automatically closed because it was labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'

.github/workflows/integration-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@ name: Integration tests
22

33
on:
44
workflow_call:
5+
inputs:
6+
auditlog_type:
7+
type: string
8+
default: "django-auditlog"
59

610
jobs:
711
integration_tests:
812
# run tests with docker compose
913
name: User Interface Tests
1014
runs-on: ubuntu-latest
15+
env:
16+
AUDITLOG_TYPE: ${{ inputs.auditlog_type }}
1117
strategy:
1218
matrix:
1319
test-case: [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
echo "chart_version=$(ls build | cut -d '-' -f 2,3 | sed 's|\.tgz||')" >> $GITHUB_ENV
8888
8989
- name: Create release ${{ inputs.release_number }}
90-
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3
90+
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
9191
with:
9292
name: '${{ inputs.release_number }} 🌈'
9393
tag_name: ${{ inputs.release_number }}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ on:
66
platform:
77
type: string
88
default: "linux/amd64"
9+
auditlog_type:
10+
type: string
11+
default: "django-auditlog"
912

1013
jobs:
1114
unit_tests:
1215
name: Rest Framework Unit Tests
1316
runs-on: ${{ inputs.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
17+
env:
18+
AUDITLOG_TYPE: ${{ inputs.auditlog_type }}
1419

1520
strategy:
1621
matrix:

.github/workflows/unit-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,26 @@ jobs:
2525
strategy:
2626
matrix:
2727
platform: ['linux/amd64', 'linux/arm64']
28+
auditlog_type: ['django-auditlog', 'django-pghistory']
2829
fail-fast: false
2930
needs: build-docker-containers
3031
uses: ./.github/workflows/rest-framework-tests.yml
3132
secrets: inherit
3233
with:
3334
platform: ${{ matrix.platform}}
35+
auditlog_type: ${{ matrix.auditlog_type }}
3436

3537
# only run integration tests for linux/amd64 (default)
3638
test-user-interface:
3739
needs: build-docker-containers
3840
uses: ./.github/workflows/integration-tests.yml
3941
secrets: inherit
42+
strategy:
43+
matrix:
44+
auditlog_type: ['django-auditlog', 'django-pghistory']
45+
fail-fast: false
46+
with:
47+
auditlog_type: ${{ matrix.auditlog_type }}
4048

4149
# only run k8s tests for linux/amd64 (default)
4250
test-k8s:

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

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ services:
129129
- defectdojo_postgres:/var/lib/postgresql/data
130130
redis:
131131
# Pinning to this version due to licensing constraints
132-
image: redis:7.2.10-alpine@sha256:395ccd7ee4db0867de0d0410f4712a9e0331cff9fdbd864f71ec0f7982d3ffe6
132+
image: redis:7.2.11-alpine@sha256:7632e82373929f39cdbead93f2e45d8b3cd295072c4755e00e7e6b19d56cc512
133133
volumes:
134134
- defectdojo_redis:/data
135135
volumes:

docker/entrypoint-initializer.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ python3 manage.py makemigrations --no-input --check --dry-run --verbosity 3 || {
110110
cat <<-EOF
111111
112112
********************************************************************************
113+
WARNING: Missing Database Migrations Detected
114+
********************************************************************************
113115
114116
You made changes to the models without creating a DB migration for them.
115117
@@ -119,15 +121,25 @@ If you're not familiar with migrations in Django, please read the
119121
great documentation thoroughly:
120122
https://docs.djangoproject.com/en/5.0/topics/migrations/
121123
124+
This is now a WARNING and the container will continue to start.
125+
However, you should create the necessary migrations as soon as possible using:
126+
docker compose exec uwsgi bash -c 'python manage.py makemigrations -v2'
127+
122128
********************************************************************************
123129
124130
EOF
125-
exit 1
131+
echo "WARNING: Continuing startup despite missing migrations..."
126132
}
127133

128134
echo "Migrating"
129135
python3 manage.py migrate
130136

137+
echo "Configuring pghistory triggers based on audit settings"
138+
cat <<EOD | python3 manage.py shell
139+
from dojo.auditlog import configure_pghistory_triggers
140+
configure_pghistory_triggers()
141+
EOD
142+
131143
echo "Admin user: ${DD_ADMIN_USER}"
132144
ADMIN_EXISTS=$(echo "SELECT * from auth_user;" | python manage.py dbshell | grep "${DD_ADMIN_USER}" || true)
133145
# Abort if the admin user already exists, instead of giving a new fake password that won't work

docs/content/en/changelog/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ For Open Source release notes, please see the [Releases page on GitHub](https://
1010

1111
## Sept 2025: v2.50
1212

13+
### Sept 22, 2025: v2.50.4
14+
15+
* **(Pro UI)** Changes Engagement Deduplication form label and help text
16+
* **(Pro UI)** Adds toggle for MCP (for superusers only)
17+
1318
### Sept 15, 2025: v2.50.3
1419

1520
* **(Pro UI)** Added support for [CVSSv4.0](https://www.first.org/cvss/v4-0/) vector strings.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Github Secrets Detection Report"
3+
toc_hide: true
4+
---
5+
Import findings in JSON format from Github Secret Scanning REST API:
6+
<https://docs.github.com/en/rest/secret-scanning/secret-scanning>
7+
8+
### Sample Scan Data
9+
Sample Github SAST scans can be found [here](https://github.com/DefectDojo/django-DefectDojo/tree/master/unittests/scans/github_secrets_detection_report_many_vul.json).

0 commit comments

Comments
 (0)