Skip to content

Commit ea61111

Browse files
authored
Merge pull request #14885 from DefectDojo/release/2.58.3
Release: Merge release into master from: release/2.58.3
2 parents 6eab873 + cd38182 commit ea61111

55 files changed

Lines changed: 1537 additions & 392 deletions

Some content is hidden

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

.github/workflows/integration-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ jobs:
7373
"tests/tool_type_test.py",
7474
"tests/user_profile_test.py",
7575
"tests/user_test.py",
76-
# "tests/import_scanner_test.py",
7776
# "tests/zap.py",
7877
]
7978
os: [debian]

.github/workflows/validate_docs_build.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,36 @@ jobs:
4444
- name: Check internal links
4545
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2
4646
with:
47-
args: --offline --no-progress --root-dir docs/public './docs/public/**/*.html'
47+
# --remap makes lychee resolve absolute docs.defectdojo.com URLs against
48+
# the freshly built site, so absURL-rendered links (e.g. nav menu items)
49+
# are verified as 404s instead of being skipped as remote URLs.
50+
args: >-
51+
--offline --no-progress
52+
--root-dir ${{ github.workspace }}/docs/public
53+
--remap "https://docs.defectdojo.com file://${{ github.workspace }}/docs/public"
54+
'./docs/public/**/*.html'
4855
fail: true
4956

57+
- name: Check in-app docs help links
58+
# Find every file under dojo/ that hardcodes a docs.defectdojo.com URL
59+
# (templates, settings, etc.) and check those links against the freshly
60+
# built site. --remap turns the absolute docs URLs into local file lookups;
61+
# --exclude '%7[BD]' drops URL-encoded Django template tags ({% ... %})
62+
# so only real external docs URLs are checked. lychee is on $PATH from
63+
# the previous lychee-action step.
64+
run: |
65+
set -euo pipefail
66+
mapfile -t files < <(grep -rl 'docs\.defectdojo\.com' dojo/ \
67+
--include='*.html' --include='*.py' --include='*.tpl')
68+
if [ "${#files[@]}" -eq 0 ]; then
69+
echo "No files reference docs.defectdojo.com — pattern is stale." >&2
70+
exit 1
71+
fi
72+
printf 'Checking in-app docs links in:\n'
73+
printf ' %s\n' "${files[@]}"
74+
lychee --offline --no-progress \
75+
--root-dir "${GITHUB_WORKSPACE}/docs/public" \
76+
--remap "https://docs.defectdojo.com file://${GITHUB_WORKSPACE}/docs/public" \
77+
--exclude '%7[BD]' \
78+
"${files[@]}"
79+
File renamed without changes.

Dockerfile.django-debian

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ RUN \
6767
--no-cache-dir \
6868
--no-index \
6969
--find-links=/tmp/wheels \
70-
-r ./requirements.txt
70+
-r ./requirements.txt && \
71+
apt-get -y purge --auto-remove git
7172

7273
COPY \
7374
docker/entrypoint-celery-beat.sh \

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "defectdojo",
3-
"version": "2.58.2",
3+
"version": "2.58.3",
44
"license" : "BSD-3-Clause",
55
"private": true,
66
"dependencies": {

docker/entrypoint-integration-tests.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,6 @@ else
274274
# The below tests are commented out because they are still an unstable work in progress
275275
## Once Ready they can be uncommented.
276276

277-
# echo "Import Scanner integration test"
278-
# if python3 tests/import_scanner_test.py ; then
279-
# echo "Success: Import Scanner integration tests passed"
280-
# else
281-
# echo "Error: Import Scanner integration test failed"; exit 1
282-
# fi
283-
284277
# echo "Zap integration test"
285278
# if python3 tests/zap.py ; then
286279
# echo "Success: zap integration tests passed"

docs/assets/images/assets_ss1.png

532 KB
Loading

docs/assets/images/assets_ss2.png

440 KB
Loading
456 KB
Loading

docs/assets/images/product_ss1.png

400 KB
Loading

0 commit comments

Comments
 (0)