Skip to content

Commit 8bc3738

Browse files
authored
Merge pull request #13602 from DefectDojo/release/2.52.0
Release: Merge release into master from: release/2.52.0
2 parents 810854b + 8f98d4e commit 8bc3738

File tree

149 files changed

+3776
-1914
lines changed

Some content is hidden

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

149 files changed

+3776
-1914
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This checklist is for your information.
2626
- [ ] Bugfixes should be submitted against the `bugfix` branch.
2727
- [ ] Give a meaningful name to your PR, as it may end up being used in the release notes.
2828
- [ ] Your code is flake8 compliant.
29-
- [ ] Your code is python 3.12 compliant.
29+
- [ ] Your code is python 3.13 compliant.
3030
- [ ] If this is a new feature and not a bug fix, you've included the proper documentation in the docs at https://github.com/DefectDojo/django-DefectDojo/tree/dev/docs as part of this PR.
3131
- [ ] Model changes must include the necessary migrations in the dojo/db_migrations folder.
3232
- [ ] Add applicable tests to the unit tests.

.github/workflows/build-docker-images-for-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# export docker images to be used in next jobs below
6868
- name: Upload image ${{ matrix.docker-image }} as artifact
6969
timeout-minutes: 15
70-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
70+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
7171
with:
7272
name: built-docker-image-${{ matrix.docker-image }}-${{ matrix.os }}-${{ env.PLATFORM }}
7373
path: ${{ matrix.docker-image }}-${{ matrix.os }}-${{ env.PLATFORM }}_img

.github/workflows/close-stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Close issues and PRs that are pending closure
19-
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
19+
uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
2020
with:
2121
# Disable automatic stale marking - only close manually labeled items
2222
days-before-stale: -1

.github/workflows/fetch-oas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: docker compose down
5252

5353
- name: Upload oas.${{ matrix.file-type }} as artifact
54-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
54+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5555
with:
5656
name: oas-${{ matrix.file-type }}
5757
path: oas.${{ matrix.file-type }}

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
extended: true
2020

2121
- name: Setup Node
22-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
22+
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2323
with:
24-
node-version: '22.20.0'
24+
node-version: '24.11.0' # TODO: Renovate helper might not be needed here - needs to be fully tested
2525

2626
- name: Cache dependencies
2727
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0

.github/workflows/helm-docs-updates.yml

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

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
# load docker images from build jobs
6060
- name: Load images from artifacts
61-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
61+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
6262
with:
6363
path: built-docker-image
6464
pattern: built-docker-image-*
@@ -76,7 +76,7 @@ jobs:
7676
run: ln -s docker-compose.override.integration_tests.yml docker-compose.override.yml
7777

7878
- name: Start Dojo
79-
run: docker compose up --no-deps -d postgres nginx celerybeat celeryworker mailhog uwsgi redis
79+
run: docker compose up --no-deps -d postgres nginx celerybeat celeryworker mailhog uwsgi valkey
8080
env:
8181
DJANGO_VERSION: ${{ matrix.os }}
8282
NGINX_VERSION: alpine

.github/workflows/k8s-tests.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@ on:
55

66
env:
77
DD_HOSTNAME: defectdojo.default.minikube.local
8-
HELM_REDIS_BROKER_SETTINGS: " \
9-
--set redis.enabled=true \
10-
--set celery.broker=redis \
11-
--set createRedisSecret=true \
12-
"
13-
HELM_PG_DATABASE_SETTINGS: " \
14-
--set postgresql.enabled=true \
15-
--set createPostgresqlSecret=true \
16-
"
178
jobs:
189
setting_minikube_cluster:
1910
name: Kubernetes Deployment
@@ -23,11 +14,11 @@ jobs:
2314
matrix:
2415
include:
2516
# databases, broker and k8s are independent, so we don't need to test each combination
26-
# lastest k8s version (https://kubernetes.io/releases/) and oldest supported version from aws
27-
# are tested (https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#available-versions)
28-
- databases: pgsql
29-
brokers: redis
30-
k8s: 'v1.34.0' # renovate: datasource=github-releases depName=kubernetes/kubernetes
17+
# lastest k8s version (https://kubernetes.io/releases/) and the oldest officially supported version
18+
# are tested (https://kubernetes.io/releases/)
19+
- k8s: 'v1.34.0' # renovate: datasource=github-releases depName=kubernetes/kubernetes versioning=loose
20+
os: debian
21+
- k8s: 'v1.31.13' # Do not track with renovate as we likely want to rev this manually
3122
os: debian
3223
steps:
3324
- name: Checkout
@@ -47,7 +38,7 @@ jobs:
4738
minikube status
4839
4940
- name: Load images from artifacts
50-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
41+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
5142
with:
5243
path: built-docker-image
5344
pattern: built-docker-image-*
@@ -68,12 +59,6 @@ jobs:
6859
helm dependency list ./helm/defectdojo
6960
helm dependency update ./helm/defectdojo
7061
71-
- name: Set confings into Outputs
72-
id: set
73-
run: |-
74-
echo "pgsql=${{ env.HELM_PG_DATABASE_SETTINGS }}" >> $GITHUB_ENV
75-
echo "redis=${{ env.HELM_REDIS_BROKER_SETTINGS }}" >> $GITHUB_ENV
76-
7762
- name: Deploying Django application with ${{ matrix.databases }} ${{ matrix.brokers }}
7863
timeout-minutes: 15
7964
run: |-
@@ -84,10 +69,14 @@ jobs:
8469
defectdojo \
8570
./helm/defectdojo \
8671
--set django.ingress.enabled=true \
72+
--set images.django.image.tag=latest \
73+
--set images.nginx.image.tag=latest \
8774
--set imagePullPolicy=Never \
8875
--set initializer.keepSeconds="-1" \
89-
${{ env[matrix.databases] }} \
90-
${{ env[matrix.brokers] }} \
76+
--set redis.enabled=true \
77+
--set createRedisSecret=true \
78+
--set postgresql.enabled=true \
79+
--set createPostgresqlSecret=true \
9180
--set createSecret=true
9281
9382
- name: Check deployment status

.github/workflows/release-1-create-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
chart-search-root: "helm/defectdojo"
9999

100100
- name: Push version changes
101-
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
101+
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
102102
with:
103103
commit_user_name: "${{ env.GIT_USERNAME }}"
104104
commit_user_email: "${{ env.GIT_EMAIL }}"

.github/workflows/release-3-master-into-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
chart-search-root: "helm/defectdojo"
8787

8888
- name: Push version changes
89-
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
89+
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
9090
with:
9191
commit_user_name: "${{ env.GIT_USERNAME }}"
9292
commit_user_email: "${{ env.GIT_EMAIL }}"
@@ -162,7 +162,7 @@ jobs:
162162
chart-search-root: "helm/defectdojo"
163163

164164
- name: Push version changes
165-
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
165+
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
166166
with:
167167
commit_user_name: "${{ env.GIT_USERNAME }}"
168168
commit_user_email: "${{ env.GIT_EMAIL }}"

0 commit comments

Comments
 (0)