Skip to content

Commit 230c9f4

Browse files
authored
Merge branch 'dev' into dynamic-group
2 parents f8bc92c + c7e3d5b commit 230c9f4

File tree

123 files changed

+844
-675
lines changed

Some content is hidden

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

123 files changed

+844
-675
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
os: [alpine, debian]
2525
platform: ["${{ inputs.platform }}"]
2626
exclude:
27+
- docker-image: nginx
28+
os: debian
2729
- docker-image: integration-tests
2830
os: alpine
2931
- docker-image: integration-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 stale issues and PRs
19-
uses: actions/stale@v9
19+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
2020
with:
2121
# Disable automatic stale marking - only close manually labeled items
2222
days-before-stale: -1

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Load docker images
6262
timeout-minutes: 10
6363
run: |-
64-
docker load -i built-docker-image/nginx-${{ matrix.os }}-linux-amd64_img
64+
docker load -i built-docker-image/nginx-alpine-linux-amd64_img
6565
docker load -i built-docker-image/django-${{ matrix.os }}-linux-amd64_img
6666
docker load -i built-docker-image/integration-tests-debian-linux-amd64_img
6767
docker images
@@ -73,14 +73,14 @@ jobs:
7373
run: docker compose up --no-deps -d postgres nginx celerybeat celeryworker mailhog uwsgi redis
7474
env:
7575
DJANGO_VERSION: ${{ matrix.os }}
76-
NGINX_VERSION: ${{ matrix.os }}
76+
NGINX_VERSION: alpine
7777

7878
- name: Initialize
7979
timeout-minutes: 10
8080
run: docker compose up --no-deps --exit-code-from initializer initializer
8181
env:
8282
DJANGO_VERSION: ${{ matrix.os }}
83-
NGINX_VERSION: ${{ matrix.os }}
83+
NGINX_VERSION: alpine
8484

8585
- name: Integration tests
8686
timeout-minutes: 10

.github/workflows/k8s-tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# are tested (https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#available-versions)
2828
- databases: pgsql
2929
brokers: redis
30-
k8s: 'v1.30.3'
30+
k8s: 'v1.33.4'
3131
os: debian
3232
steps:
3333
- name: Checkout
@@ -57,8 +57,10 @@ jobs:
5757
timeout-minutes: 15
5858
run: |-
5959
eval $(minikube docker-env)
60-
docker load -i built-docker-image/nginx-${{ matrix.os }}-linux-amd64_img
60+
docker load -i built-docker-image/nginx-alpine-linux-amd64_img
6161
docker load -i built-docker-image/django-${{ matrix.os }}-linux-amd64_img
62+
docker tag defectdojo/defectdojo-nginx:alpine defectdojo/defectdojo-nginx:latest
63+
docker tag defectdojo/defectdojo-django:${{ matrix.os }} defectdojo/defectdojo-django:latest
6264
docker images
6365
6466
- name: Configure HELM repos
@@ -87,8 +89,7 @@ jobs:
8789
--set initializer.keepSeconds="-1" \
8890
${{ env[matrix.databases] }} \
8991
${{ env[matrix.brokers] }} \
90-
--set createSecret=true \
91-
--set tag=${{ matrix.os }}
92+
--set createSecret=true
9293
9394
- name: Check deployment status
9495
if: always()
@@ -125,7 +126,7 @@ jobs:
125126
while :
126127
do
127128
DJANGO_IP=$(kubectl get svc defectdojo-django -o jsonpath='{.spec.clusterIP}')
128-
OUT=$(kubectl run curl --quiet=true --image=curlimages/curl:7.73.0 \
129+
OUT=$(kubectl run curl --quiet=true --image=curlimages/curl:8.15.0 \
129130
--overrides='{ "apiVersion": "v1" }' \
130131
--restart=Never -i --rm -- \
131132
--silent \
@@ -156,7 +157,7 @@ jobs:
156157
ADMIN_PASS=$(kubectl get secret/defectdojo -o jsonpath='{.data.DD_ADMIN_PASSWORD}' | base64 -d)
157158
echo "Simple API check"
158159
DJANGO_IP=$(kubectl get svc defectdojo-django -o jsonpath='{.spec.clusterIP}')
159-
CR=$(kubectl run curl --quiet=true --image=curlimages/curl:7.73.0 \
160+
CR=$(kubectl run curl --quiet=true --image=curlimages/curl:8.15.0 \
160161
--overrides='{ "apiVersion": "v1" }' \
161162
--restart=Never -i --rm -- \
162163
--silent \

.github/workflows/plantuml.yml

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

.github/workflows/release-x-manual-docker-containers.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
matrix:
3737
docker-image: [django, nginx]
3838
os: [alpine, debian]
39+
exclude:
40+
- docker-image: nginx
41+
os: debian
3942
steps:
4043
# Replace slashes so we can use this in filenames
4144
- name: Set-platform
@@ -86,7 +89,7 @@ jobs:
8689
8790
# upload the digest file as artifact
8891
- name: Upload digest
89-
uses: actions/upload-artifact@v4
92+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9093
with:
9194
name: digests-${{ matrix.docker-image}}-${{ matrix.os }}-${{ env.PLATFORM }}
9295
path: ${{ runner.temp }}/digests/*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
git config --global user.email "${{ env.GIT_EMAIL }}"
6363
6464
- name: Set up Helm
65-
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
65+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
6666

6767
- name: Configure HELM repos
6868
run: |-

.github/workflows/release-x-manual-merge-container-digests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ jobs:
3131
matrix:
3232
docker-image: [django, nginx]
3333
os: [alpine, debian]
34-
34+
exclude:
35+
- docker-image: nginx
36+
os: debian
3537
steps:
3638
# deduce docker org name from git repo to make the build also work in forks
3739
- id: Set-docker-org
3840
run: echo "DOCKER_ORG=$(echo ${GITHUB_REPOSITORY%%/*} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
3941

4042
# only download digests for this image and this os
4143
- name: Download digests
42-
uses: actions/download-artifact@v5
44+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
4345
with:
4446
path: ${{ runner.temp }}/digests
4547
pattern: digests-${{ matrix.docker-image}}-${{ matrix.os }}-*
@@ -52,7 +54,7 @@ jobs:
5254
password: ${{ secrets.DOCKERHUB_TOKEN }}
5355

5456
- name: Set up Docker Buildx
55-
uses: docker/setup-buildx-action@v3
57+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5658

5759
# the alpine and debian images are tagged with the os name
5860
- name: Create OS specific manifest list and push
@@ -69,14 +71,14 @@ jobs:
6971
7072
# debian images are the default / official ones, so these get the os-less tag
7173
- name: Tag Debian with os-less tags
72-
if: ${{ matrix.os == 'debian' }}
74+
if: ${{ (matrix.docker-image == 'django' && matrix.os == 'debian') || (matrix.docker-image == 'nginx' && matrix.os == 'alpine') }}
7375
working-directory: ${{ runner.temp }}/digests
7476
run: |
7577
set -x
7678
docker buildx imagetools create -t "${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ inputs.release_number }}" ${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ inputs.release_number }}-${{ matrix.os }}
7779
7880
# just for logging
7981
- name: Inspect default images
80-
if: ${{ matrix.os == 'debian' }}
82+
if: ${{ (matrix.docker-image == 'django' && matrix.os == 'debian') || (matrix.docker-image == 'nginx' && matrix.os == 'alpine') }}
8183
run: |
8284
docker buildx imagetools inspect ${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ inputs.release_number }}

.github/workflows/release-x-manual-tag-as-latest.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ jobs:
4343
password: ${{ secrets.DOCKERHUB_TOKEN }}
4444

4545
- name: Set up Docker Buildx
46-
uses: docker/setup-buildx-action@v3
46+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
4747

48-
# debian images are the default / official ones, and these were already tagged, so these get the latest tag
49-
- name: Tag Debian with latest tags
48+
- name: Tag with latest tags
5049
run: |
5150
set -x
5251
docker buildx imagetools create -t "${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:latest" ${{ env.DOCKER_ORG }}/defectdojo-${{ matrix.docker-image}}:${{ inputs.release_number }}

.github/workflows/release_drafter_valentijn.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
update_release_draft:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: valentijnscholten/release-drafter@master # TODO: not maintained anymore - missing part is maybe already solved in the upstream
23+
- uses: valentijnscholten/release-drafter@f587de96a420b4b7f767d7eb12817926f18cad69 # master # TODO: not maintained anymore - missing part is maybe already solved in the upstream
2424
with:
2525
version: ${{github.event.inputs.version}}
2626
previous-version: ${{github.event.inputs.previous-version}}

0 commit comments

Comments
 (0)