Skip to content

Commit 3d669fe

Browse files
Merge branch 'dev' into bleach-to-nh3
2 parents 6a4516f + 3950894 commit 3d669fe

313 files changed

Lines changed: 186649 additions & 181917 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Normalize line endings to LF
2+
*.sh text eol=lf
3+
*.expect text eol=lf
4+
*.py text eol=lf
5+
*.yml text eol=lf
6+
*.yaml text eol=lf
7+
*.md text eol=lf
8+
9+
# Binary files — never touch line endings
10+
*.png binary
11+
*.jpg binary
12+
*.gif binary
13+
*.ico binary
14+
*.pdf binary

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ updates:
44
directory: "/"
55
schedule:
66
interval: daily
7+
time: "08:00"
78
open-pull-requests-limit: 10
89
target-branch: dev
910
ignore:
@@ -17,6 +18,7 @@ updates:
1718
directory: "/components"
1819
schedule:
1920
interval: daily
21+
time: "08:00"
2022
open-pull-requests-limit: 10
2123
target-branch: dev
2224
ignore:

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This checklist is for your information.
2525
- [ ] Features/Changes should be submitted against the `dev`.
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.
28-
- [ ] Your code is flake8 compliant.
28+
- [ ] Your code is Ruff compliant (see [ruff.toml](../ruff.toml)).
2929
- [ ] 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.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
run: echo "IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
5050

5151
- name: Set up Docker Buildx
52-
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
52+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
5353

5454
- name: Build
5555
id: docker_build
56-
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2
56+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
5757
timeout-minutes: 15
5858
env:
5959
DOCKER_BUILD_CHECKS_ANNOTATIONS: false

.github/workflows/cancel-outdated-workflow-runs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 3
1515
steps:
16-
- uses: styfle/cancel-workflow-action@3155a141048f8f89c06b4cdae32e7853e97536bc # 0.13.0
16+
- uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
1717
with:
18-
workflow_id: 'integration-tests.yml,k8s-testing.yml,unit-tests.yml'
18+
workflow_id: 'integration-tests.yml,k8s-tests.yml,unit-tests.yml,validate_docs_build.yml,test-helm-chart.yml,ruff.yml,shellcheck.yml'
1919
access_token: ${{ github.token }}

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
extended: true
2323

2424
- name: Setup Node
25-
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
25+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2626
with:
2727
node-version: '24.14.0' # TODO: Renovate helper might not be needed here - needs to be fully tested
2828

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292

9393
# load docker images from build jobs
9494
- name: Load images from artifacts
95-
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
95+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
9696
with:
9797
path: built-docker-image
9898
pattern: built-docker-image-*

.github/workflows/k8s-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626

2727
- name: Setup Minikube
28-
uses: manusa/actions-setup-minikube@8234275e0386fe1cdaf519d28c90f4f03fad89e4 # v2.15.0
28+
uses: manusa/actions-setup-minikube@96202dee4ae1c2f46a62fe197273aaf22b83f42d # v2.16.1
2929
with:
3030
minikube version: 'v1.38.1' # renovate: datasource=github-releases depName=kubernetes/minikube
3131
kubernetes version: ${{ matrix.k8s }}
@@ -38,7 +38,7 @@ jobs:
3838
minikube status
3939
4040
- name: Load images from artifacts
41-
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
41+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4242
with:
4343
path: built-docker-image
4444
pattern: built-docker-image-*
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Performance Tests
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
performance-tests:
8+
name: Performance Tests
9+
runs-on: ubuntu-latest
10+
needs: []
11+
permissions:
12+
contents: read
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
18+
- name: Set-platform
19+
run: |
20+
echo "PLATFORM=linux-amd64" >> $GITHUB_ENV
21+
22+
- name: Load images from artifacts
23+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
24+
with:
25+
path: built-docker-image
26+
pattern: built-docker-image-django-alpine-linux-amd64
27+
merge-multiple: true
28+
29+
- name: Load docker images
30+
timeout-minutes: 10
31+
run: |
32+
docker load -i built-docker-image/django-alpine-linux-amd64_img
33+
docker images
34+
35+
- name: Set unit-test mode
36+
run: docker/setEnv.sh unit_tests_cicd
37+
38+
- name: Start Postgres and webhook.endpoint
39+
run: docker compose up --no-deps -d postgres webhook.endpoint
40+
41+
- name: Start uwsgi (idle)
42+
timeout-minutes: 5
43+
run: |
44+
docker compose -f docker-compose.yml -f docker-compose.override.unit_tests_cicd.yml \
45+
-f docker/docker-compose.override.performance_tests_cicd.yml \
46+
up -d --no-deps uwsgi
47+
env:
48+
DJANGO_VERSION: alpine
49+
50+
- name: Run performance tests (auto-update counts)
51+
timeout-minutes: 15
52+
run: python3 scripts/update_performance_test_counts.py
53+
54+
- name: Check counts are up to date
55+
run: |
56+
if ! git diff --quiet unittests/test_importers_performance.py; then
57+
echo "Performance test counts are out of date. Fix them by running locally:"
58+
echo ""
59+
echo " python3 scripts/update_performance_test_counts.py"
60+
echo ""
61+
echo "Diff:"
62+
git diff unittests/test_importers_performance.py
63+
exit 1
64+
else
65+
echo "Performance test counts are up to date."
66+
fi
67+
68+
- name: Logs
69+
if: failure()
70+
run: docker compose logs --tail="2500" uwsgi
71+
72+
- name: Shutdown
73+
if: always()
74+
run: docker compose down

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- name: Create Release
2929
id: create_release
30-
uses: release-drafter/release-drafter@6db134d15f3909ccc9eefd369f02bd1e9cffdf97 # v6.2.0
30+
uses: release-drafter/release-drafter@3a7fb5c85b80b1dda66e1ccb94009adbbd32fce3 # v7.0.0
3131
with:
3232
version: ${{ inputs.version }}
3333
env:
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Load OAS files from artifacts
50-
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
50+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5151
with:
5252
pattern: oas-*
5353

0 commit comments

Comments
 (0)