Skip to content

Commit 244eb01

Browse files
authored
Merge branch 'dev' into master-into-dev/2.51.1-2.52.0-dev
2 parents 0372b07 + f61e3aa commit 244eb01

53 files changed

Lines changed: 789 additions & 399 deletions

Some content is hidden

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

.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/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/k8s-tests.yml

Lines changed: 5 additions & 20 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
@@ -25,9 +16,7 @@ jobs:
2516
# databases, broker and k8s are independent, so we don't need to test each combination
2617
# lastest k8s version (https://kubernetes.io/releases/) and oldest supported version from aws
2718
# 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'
19+
- k8s: 'v1.34.0'
3120
os: debian
3221
steps:
3322
- name: Checkout
@@ -68,12 +57,6 @@ jobs:
6857
helm dependency list ./helm/defectdojo
6958
helm dependency update ./helm/defectdojo
7059
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-
7760
- name: Deploying Django application with ${{ matrix.databases }} ${{ matrix.brokers }}
7861
timeout-minutes: 15
7962
run: |-
@@ -86,8 +69,10 @@ jobs:
8669
--set django.ingress.enabled=true \
8770
--set imagePullPolicy=Never \
8871
--set initializer.keepSeconds="-1" \
89-
${{ env[matrix.databases] }} \
90-
${{ env[matrix.brokers] }} \
72+
--set redis.enabled=true \
73+
--set createRedisSecret=true \
74+
--set postgresql.enabled=true \
75+
--set createPostgresqlSecret=true \
9176
--set createSecret=true
9277
9378
- name: Check deployment status

.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@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
90+
uses: softprops/action-gh-release@aec2ec56f94eb8180ceec724245f64ef008b89f5 # v2.4.0
9191
with:
9292
name: '${{ inputs.release_number }} 🌈'
9393
tag_name: ${{ inputs.release_number }}

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
2626
with:
27-
python-version: 3.13
27+
python-version: 3.14
2828

2929
- name: Configure Helm repos
3030
run: |-
@@ -68,6 +68,10 @@ jobs:
6868
- name: Check update of "artifacthub.io/changes" HELM annotation
6969
if: env.changed == 'true'
7070
run: |
71+
# fast fail if `git show` fails
72+
set -e
73+
set -o pipefail
74+
7175
target_branch=${{ env.ct-branch }}
7276
7377
echo "Checking Chart.yaml annotation changes"
@@ -76,7 +80,7 @@ jobs:
7680
current_annotation=$(yq e '.annotations."artifacthub.io/changes"' "helm/defectdojo/Chart.yaml")
7781
7882
# Get target branch version of Chart.yaml annotation
79-
target_annotation=$(git show "${{ env.ct-branch }}:helm/defectdojo/Chart.yaml" | yq e '.annotations."artifacthub.io/changes"' -)
83+
target_annotation=$(git show "origin/${{ env.ct-branch }}:helm/defectdojo/Chart.yaml" | yq e '.annotations."artifacthub.io/changes"' -)
8084
8185
if [[ "$current_annotation" == "$target_annotation" ]]; then
8286
echo "::error file=helm/defectdojo/Chart.yaml::The 'artifacthub.io/changes' annotation has not been updated compared to ${{ env.ct-branch }}. For more, check the hint in 'helm/defectdojo/Chart.yaml'"

Dockerfile.django-alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Dockerfile.nginx to use the caching mechanism of Docker.
66

77
# Ref: https://devguide.python.org/#branchstatus
8-
FROM python:3.12.11-alpine3.22@sha256:02a73ead8397e904cea6d17e18516f1df3590e05dc8823bd5b1c7f849227d272 AS base
8+
FROM python:3.13.7-alpine3.22@sha256:9ba6d8cbebf0fb6546ae71f2a1c14f6ffd2fdab83af7fa5669734ef30ad48844 AS base
99
FROM base AS build
1010
WORKDIR /app
1111
RUN \

Dockerfile.django-debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Dockerfile.nginx to use the caching mechanism of Docker.
66

77
# Ref: https://devguide.python.org/#branchstatus
8-
FROM python:3.12.11-slim-trixie@sha256:d67a7b66b989ad6b6d6b10d428dcc5e0bfc3e5f88906e67d490c4d3daac57047 AS base
8+
FROM python:3.13.7-slim-trixie@sha256:5f55cdf0c5d9dc1a415637a5ccc4a9e18663ad203673173b8cda8f8dcacef689 AS base
99
FROM base AS build
1010
WORKDIR /app
1111
RUN \

Dockerfile.integration-tests-debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
FROM openapitools/openapi-generator-cli:v7.16.0@sha256:e56372add5e038753fb91aa1bbb470724ef58382fdfc35082bf1b3e079ce353c AS openapitools
55
# currently only supports x64, no arm yet due to chrome and selenium dependencies
6-
FROM python:3.12.11-slim-trixie@sha256:d67a7b66b989ad6b6d6b10d428dcc5e0bfc3e5f88906e67d490c4d3daac57047 AS build
6+
FROM python:3.13.7-slim-trixie@sha256:5f55cdf0c5d9dc1a415637a5ccc4a9e18663ad203673173b8cda8f8dcacef689 AS build
77
WORKDIR /app
88
RUN \
99
apt-get -y update && \

Dockerfile.nginx-alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Dockerfile.django-alpine to use the caching mechanism of Docker.
66

77
# Ref: https://devguide.python.org/#branchstatus
8-
FROM python:3.12.11-alpine3.22@sha256:02a73ead8397e904cea6d17e18516f1df3590e05dc8823bd5b1c7f849227d272 AS base
8+
FROM python:3.13.7-alpine3.22@sha256:9ba6d8cbebf0fb6546ae71f2a1c14f6ffd2fdab83af7fa5669734ef30ad48844 AS base
99
FROM base AS build
1010
WORKDIR /app
1111
RUN \

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"clipboard": "^2.0.11",
1515
"datatables.net": "^2.3.4",
1616
"datatables.net-buttons-bs": "^3.2.5",
17-
"datatables.net-colreorder": "^2.1.1",
17+
"datatables.net-colreorder": "^2.1.2",
1818
"drmonty-datatables-plugins": "^1.0.0",
1919
"drmonty-datatables-responsive": "^1.0.0",
2020
"easymde": "^2.20.0",

0 commit comments

Comments
 (0)