Skip to content

Commit a1aa663

Browse files
authored
Merge branch 'dev' into master-into-dev/2.51.2-2.52.0-dev
2 parents 70bba0c + 0dda8ab commit a1aa663

File tree

87 files changed

+2195
-1344
lines changed

Some content is hidden

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

87 files changed

+2195
-1344
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/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/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ 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:
2424
node-version: '22.20.0' # TODO: Renovate helper might not be needed here - needs to be fully tested
2525

.github/workflows/k8s-tests.yml

Lines changed: 11 additions & 22 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 versioning=loose
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.1' # 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
@@ -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 }}"

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,6 @@ jobs:
6969
helm dependency list ./helm/defectdojo
7070
helm dependency update ./helm/defectdojo
7171
72-
- name: Add yq
73-
uses: mikefarah/yq@6251e95af8df3505def48c71f3119836701495d6 # v4.47.2
74-
75-
- name: Pin version docker version
76-
id: pin_image
77-
run: |-
78-
yq --version
79-
yq -i '.tag="${{ inputs.release_number }}"' helm/defectdojo/values.yaml
80-
echo "Current image tag:`yq -r '.tag' helm/defectdojo/values.yaml`"
81-
8272
- name: Package Helm chart
8373
id: package-helm-chart
8474
run: |
@@ -87,7 +77,7 @@ jobs:
8777
echo "chart_version=$(ls build | cut -d '-' -f 2,3 | sed 's|\.tgz||')" >> $GITHUB_ENV
8878
8979
- name: Create release ${{ inputs.release_number }}
90-
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
80+
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
9181
with:
9282
name: '${{ inputs.release_number }} 🌈'
9383
tag_name: ${{ inputs.release_number }}

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

Lines changed: 13 additions & 5 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 # Renovate helper is not needed here
27+
python-version: 3.14 # Renovate helper is not needed here
2828

2929
- name: Configure Helm repos
3030
run: |-
@@ -34,8 +34,8 @@ jobs:
3434
- name: Set up chart-testing
3535
uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0
3636
with:
37-
yamale_version: 4.0.4 # renovate: datasource=pypi depName=yamale versioning=semver
38-
yamllint_version: 1.35.1 # renovate: datasource=pypi depName=yamllint versioning=semver
37+
yamale_version: 6.0.0 # renovate: datasource=pypi depName=yamale versioning=semver
38+
yamllint_version: 1.37.1 # renovate: datasource=pypi depName=yamllint versioning=semver
3939

4040
- name: Determine target branch
4141
id: ct-branch-target
@@ -68,15 +68,23 @@ 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"
7478
7579
# Get current branch annotation
7680
current_annotation=$(yq e '.annotations."artifacthub.io/changes"' "helm/defectdojo/Chart.yaml")
81+
echo "Current annotation: "
82+
echo $current_annotation
7783
7884
# 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"' -)
85+
target_annotation=$(git show "origin/${{ env.ct-branch }}:helm/defectdojo/Chart.yaml" | yq e '.annotations."artifacthub.io/changes"' -)
86+
echo "Target annotation: "
87+
echo $target_annotation
8088
8189
if [[ "$current_annotation" == "$target_annotation" ]]; then
8290
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'"
@@ -121,7 +129,7 @@ jobs:
121129
# If this step fails, install https://github.com/losisin/helm-values-schema-json and run locally `helm schema --use-helm-docs` in `helm/defectdojo` before committing your changes.
122130
# The helm schema will be generated for you.
123131
- name: Generate values schema json
124-
uses: losisin/helm-values-schema-json-action@d5847286fa04322702c4f8d45031974798c83ac7 # v2.3.0
132+
uses: losisin/helm-values-schema-json-action@660c441a4a507436a294fc55227e1df54aca5407 # v2.3.1
125133
with:
126134
fail-on-diff: true
127135
working-directory: "helm/defectdojo"

.github/workflows/validate_docs_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
extended: true
1717

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

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 \

0 commit comments

Comments
 (0)