Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
496d4ff
Update versions in application files
Sep 2, 2025
8d2a29f
Merge pull request #13094 from DefectDojo/master-into-dev/2.50.0-2.51…
rossops Sep 2, 2025
37caf24
fix(docker): Docker Debian upgrade to Trixie (#13054)
kiblik Sep 2, 2025
218a29a
Ruff: Preparation for G004 (#13076)
manuel-sommer Sep 2, 2025
f01c0a9
Bump drf-spectacular-sidecar from 2025.8.1 to 2025.9.1 (#13089)
dependabot[bot] Sep 3, 2025
61711a1
Bump cryptography from 45.0.6 to 45.0.7 (#13088)
dependabot[bot] Sep 3, 2025
bddf26b
Bump django-dbbackup from 4.3.0 to 5.0.0 (#13087)
dependabot[bot] Sep 3, 2025
a8118f1
Bump boto3 from 1.40.20 to 1.40.21 (#13086)
dependabot[bot] Sep 3, 2025
5329068
chore(deps): update dependency vite from 7.1.3 to v7.1.4 (docs/packag…
renovate[bot] Sep 3, 2025
2f85b1f
msteams: Support Power Automate Workflows via Adaptive Card format (#…
valentijnscholten Sep 4, 2025
a47e2b6
Ruff: Add PLW0603 (#13097)
manuel-sommer Sep 4, 2025
1507f95
chore(deps): update actions/labeler action from v5.0.0 to v6 (.github…
renovate[bot] Sep 4, 2025
5d2a1e6
chore(deps): update actions/setup-node action from v4.4.0 to v5 (.git…
renovate[bot] Sep 4, 2025
888b6e2
Update actions/setup-python action from v5.6.0 to v6 (.github/workflo…
renovate[bot] Sep 4, 2025
8303d5c
Update actions/stale action from v9.1.0 to v10 (.github/workflows/clo…
renovate[bot] Sep 4, 2025
7db9e6b
Bump boto3 from 1.40.21 to 1.40.23 (#13110)
dependabot[bot] Sep 4, 2025
ff4b9a8
Import performance: reduce number of `finding.save()` calls (#12900)
valentijnscholten Sep 4, 2025
b6eda47
fix(product): Drop import_scan_results_prod (#13041)
kiblik Sep 4, 2025
3d71d77
chore(deps): update actions/github-script action from v7.0.1 to v7.1.…
renovate[bot] Sep 5, 2025
774490f
chore(deps): update actions/labeler action from v6.0.0 to v6.0.1 (.gi…
renovate[bot] Sep 5, 2025
0ab3ff6
Bump boto3 from 1.40.23 to 1.40.24 (#13116)
dependabot[bot] Sep 5, 2025
b9be612
Bump ruff from 0.12.11 to 0.12.12 (#13117)
dependabot[bot] Sep 5, 2025
aea8b20
Bump markdown from 3.8.2 to 3.9 (#13118)
dependabot[bot] Sep 5, 2025
8db1fd9
Bump pygithub from 2.7.0 to 2.8.1 (#13100)
dependabot[bot] Sep 5, 2025
79a292b
chore(deps): update actions/github-script action from v7.1.0 to v8 (.…
renovate[bot] Sep 5, 2025
43434d6
feat: improve Helm chart (#12691)
fernandezcuesta Sep 5, 2025
d41ceaf
Ruff: Add PLW (#13104)
manuel-sommer Sep 5, 2025
fc4c132
Update versions in application files
Sep 8, 2025
bc7bf32
Merge branch 'dev' into master-into-dev/2.50.1-2.51.0-dev
rossops Sep 8, 2025
f42df63
Merge pull request #13138 from DefectDojo/master-into-dev/2.50.1-2.51…
rossops Sep 8, 2025
7295fa8
Bump psycopg[c] from 3.2.9 to 3.2.10 (#13133)
dependabot[bot] Sep 8, 2025
3fb18e0
Bump boto3 from 1.40.24 to 1.40.25 (#13132)
dependabot[bot] Sep 8, 2025
09966bd
Update mikefarah/yq action from v4.47.1 to v4.47.2 (.github/workflows…
renovate[bot] Sep 8, 2025
8665da5
Update dependency vite from 7.1.4 to v7.1.5 (docs/package.json) (#13130)
renovate[bot] Sep 8, 2025
14f227c
chore(deps): update softprops/action-gh-release action from v2.3.2 to…
renovate[bot] Sep 8, 2025
3d37175
Bump datatables.net from 2.3.3 to 2.3.4 in /components (#13145)
dependabot[bot] Sep 10, 2025
83d80ce
Update postgres:17.6-alpine Docker digest from 17.6 to 17.6-alpine (d…
renovate[bot] Sep 10, 2025
830e120
Bump datatables.net-buttons-bs from 3.2.4 to 3.2.5 in /components (#1…
dependabot[bot] Sep 10, 2025
74e28c3
docker: remove dev dependencies from release images (#13095)
valentijnscholten Sep 10, 2025
4400959
Rename duplicate 'Dashboard' to 'Finding Groups' (#13140)
testaccount90009 Sep 10, 2025
d8afc96
Bump boto3 from 1.40.25 to 1.40.27 (#13149)
dependabot[bot] Sep 10, 2025
c52c5bc
feat(docker): Use Python 3.12 in docker images (#10473)
kiblik Sep 10, 2025
33f8beb
chore(deps): update dependency django-test-migrations from 1.4.0 to v…
renovate[bot] Sep 12, 2025
e42f2cb
fix(helm): Drop bitnami repo reference (#13125)
kiblik Sep 12, 2025
58e87a9
Bump ruff from 0.12.12 to 0.13.0 (#13159)
dependabot[bot] Sep 12, 2025
cbdf895
Ruff: Add PLC0415 (#13156)
manuel-sommer Sep 12, 2025
6d104d3
Bump boto3 from 1.40.27 to 1.40.29 (#13164)
dependabot[bot] Sep 13, 2025
299a018
Ruff: Add PLC1901 (#13157)
manuel-sommer Sep 13, 2025
bbe2ed1
Update versions in application files
Sep 15, 2025
34e8ae2
Merge branch 'dev' into master-into-dev/2.50.2-2.51.0-dev
rossops Sep 15, 2025
186f047
Merge pull request #13174 from DefectDojo/master-into-dev/2.50.2-2.51…
rossops Sep 15, 2025
6441938
Bump boto3 from 1.40.29 to 1.40.30 (#13172)
dependabot[bot] Sep 15, 2025
47c3cf4
Bump pyopenssl from 25.1.0 to 25.2.0 (#13171)
dependabot[bot] Sep 15, 2025
d1d007a
Ruff: Add PLC0415 to dojo/models (#13165)
manuel-sommer Sep 15, 2025
fa958b8
feat(helm): Improve docs, add schema (#12984)
kiblik Sep 16, 2025
3cd24d1
watson: perform async index updates (#13152)
valentijnscholten Sep 16, 2025
f10d793
fix(deps): update dependency @docsearch/js from 3.9.0 to v4 (docs/pac…
renovate[bot] Sep 16, 2025
873c5c2
fix(deps): update dependency @docsearch/css from 3.9.0 to v4 (docs/pa…
renovate[bot] Sep 17, 2025
281696e
fix(deps): update dependency @tabler/icons from 3.34.1 to v3.35.0 (do…
renovate[bot] Sep 17, 2025
6ffb967
:arrow_up: Bump boto3 from 1.40.30 to 1.40.31 (#13185)
dependabot[bot] Sep 17, 2025
a75cea3
:arrow_up: Bump boto3 from 1.40.31 to 1.40.32 (#13203)
dependabot[bot] Sep 17, 2025
270ab86
Update actions/checkout action from v4.2.2 to v5 (.github/workflows/t…
renovate[bot] Sep 17, 2025
09eb62d
chore(deps): update losisin/helm-values-schema-json-action action fro…
renovate[bot] Sep 17, 2025
937dec7
chore(deps): update azure/setup-helm action from v4.3.0 to v4.3.1 (.g…
renovate[bot] Sep 17, 2025
373eff1
debugtoolbar: fix for requirements-dev.txt (#13183)
valentijnscholten Sep 17, 2025
5dfc4bd
:arrow_up: Bump pyopenssl from 25.2.0 to 25.3.0 (#13202)
dependabot[bot] Sep 18, 2025
324684e
fix(helm): Set correct icon link (#13195)
kiblik Sep 18, 2025
d9b6176
:arrow_up: Bump boto3 from 1.40.32 to 1.40.33 (#13213)
dependabot[bot] Sep 18, 2025
8004997
:arrow_up: Bump cryptography from 45.0.7 to 46.0.1 (#13204)
dependabot[bot] Sep 18, 2025
25a32cc
feat(helm): Trigger update of Helm docs when version is changed (#13191)
kiblik Sep 19, 2025
9159e3d
feat(helm): Better explanation for failing GHA (#13198)
kiblik Sep 19, 2025
cf62d26
fix(helm): Empty string values propagated as strings (not as null) (#…
kiblik Sep 19, 2025
9acc3ce
dockerfiles: drop wheels from layers (#13209)
fopina Sep 19, 2025
72806a7
make close_old_findings tooltip clearer when service is not set / emp…
fopina Sep 19, 2025
01d052f
:arrow_up: Bump boto3 from 1.40.33 to 1.40.34 (#13221)
dependabot[bot] Sep 19, 2025
f5d8ea5
Unit Tests: Ignore deprecation Warning from BlackDuck pypi package (#…
Maffooch Sep 19, 2025
76cff59
:arrow_up: Bump ruff to 0.13.1 (#13223)
manuel-sommer Sep 19, 2025
ab4315d
Ruff: Add PLC1901 to dojo/models (#13178)
manuel-sommer Sep 19, 2025
fdd5a66
chore(deps): update dependency vite from 7.1.5 to v7.1.6 (docs/packag…
renovate[bot] Sep 19, 2025
797bd24
feat(helm): Add ArtifactHub Linter (#13199)
kiblik Sep 20, 2025
07fb8ab
Update versions in application files
Sep 22, 2025
4cbb405
Merge branch 'dev' into master-into-dev/2.50.2-2.51.0-dev
rossops Sep 22, 2025
bb35fe8
Update query count in tests
Maffooch Sep 22, 2025
09acc8f
Merge pull request #13240 from DefectDojo/master-into-dev/2.50.2-2.51…
rossops Sep 22, 2025
bda56b4
fix(helm): Update annotations during releasing (#13197)
kiblik Sep 23, 2025
9e9ce38
fix(helm): apiVersion overrides not needed in tests (#13207)
kiblik Sep 23, 2025
d8a461d
fix(deps): update dependency @docsearch/js from 4.0.1 to v4.1.0 (docs…
renovate[bot] Sep 23, 2025
6a4eb92
:arrow_up: Bump lxml from 6.0.1 to 6.0.2 (#13235)
dependabot[bot] Sep 23, 2025
02638f6
chore(deps): update dependency vite from 7.1.6 to v7.1.7 (docs/packag…
renovate[bot] Sep 23, 2025
ea05d71
k8s-tests: bump k8s and minukube (#13231)
valentijnscholten Sep 23, 2025
9fb8846
drop django-tagging as dependency (#13216)
fopina Sep 23, 2025
8db0425
fix(deps): update dependency @docsearch/css from 4.0.1 to v4.1.0 (doc…
renovate[bot] Sep 23, 2025
e9eee8b
:arrow_up: Bump boto3 from 1.40.34 to 1.40.36 (#13246)
dependabot[bot] Sep 23, 2025
4f188db
debug toolbar: disable by default (#13227)
valentijnscholten Sep 23, 2025
6919a69
Ruff: Add SIM115 (#13219)
manuel-sommer Sep 23, 2025
bc0900f
feat(helm): Make API test more verbose (#13208)
kiblik Sep 23, 2025
fd2bf22
do not build/start unused services in unit test docker compose files …
fopina Sep 23, 2025
9ce8e87
Update postgres:17.6-alpine Docker digest from 17.6 to 17.6-alpine (d…
renovate[bot] Sep 24, 2025
2175461
:arrow_up: Bump boto3 from 1.40.36 to 1.40.37 (#13253)
dependabot[bot] Sep 24, 2025
c593ace
chore(deps): update actions/cache action from v4.2.4 to v4.3.0 (.gith…
renovate[bot] Sep 24, 2025
287a06a
chore(deps): update node.js from v22.19.0 to v22.20.0 (docs/package.j…
renovate[bot] Sep 24, 2025
169c1fc
Refactor warning handling for blackduck import (#13229)
Maffooch Sep 24, 2025
169e9d3
jira webhook: add comment detection test (#13232)
valentijnscholten Sep 24, 2025
c3e4c8b
feat(helm): Add docs for more variables (#13224)
kiblik Sep 25, 2025
ccef941
:arrow_up: Bump pycurl from 7.45.6 to 7.45.7 (#13258)
dependabot[bot] Sep 26, 2025
698ea66
:arrow_up: Bump pyyaml from 6.0.2 to 6.0.3 (#13264)
dependabot[bot] Sep 26, 2025
699e3b1
OpenVAS parser improvments (#13214)
jostaub Sep 26, 2025
649f866
chore(deps): update dependency node from 22.19.0 to v22.20.0 (.github…
renovate[bot] Sep 26, 2025
e296b78
:arrow_up: Bump ruff to 0.13.2 (#13267)
manuel-sommer Sep 26, 2025
8a47310
:arrow_up: Bump boto3 from 1.40.37 to 1.40.39 (#13265)
dependabot[bot] Sep 26, 2025
862f43b
Update versions in application files
Sep 29, 2025
2477d69
Update versions in application files
Sep 29, 2025
b527bf7
Merge branch 'dev' into master-into-dev/2.50.4-2.51.0-dev
rossops Sep 29, 2025
30db93f
Fixing merge error
rossops Sep 29, 2025
832a0f1
Merge pull request #13277 from DefectDojo/master-into-bugfix/2.50.4-2…
rossops Sep 29, 2025
460ec82
Setting k8s version back since .1 isnt supported in minikube
rossops Sep 29, 2025
dc761aa
Merge pull request #13276 from DefectDojo/master-into-dev/2.50.4-2.51…
rossops Sep 29, 2025
8940cc8
Bug Fix: improve Kiuwan SCA parser to support multi component finding…
mwager Sep 29, 2025
a2a52f1
:bug: Fix tenable CWE #13245 (#13252)
manuel-sommer Sep 29, 2025
2fc71eb
close finding: sync api and ui behaviour (#13230)
valentijnscholten Sep 29, 2025
57690b9
Import history optimize (#13182)
valentijnscholten Sep 29, 2025
13253f5
feat(finding list): Add planned_remediation_version (#13261)
kiblik Sep 29, 2025
927e261
Reduce and optimize number of product grading calls using a `Chord` (…
valentijnscholten Sep 29, 2025
598220a
chore(deps): update postgres docker tag from 17.6 to v18 (docker-comp…
renovate[bot] Sep 30, 2025
58fddff
:arrow_up: Bump boto3 from 1.40.39 to 1.40.41 (#13283)
dependabot[bot] Sep 30, 2025
6ef4443
chore(deps): update postgres:18.0-alpine docker digest from 18.0 to 1…
renovate[bot] Sep 30, 2025
ea162af
:arrow_up: Bump openapitools/openapi-generator-cli (#13279)
dependabot[bot] Sep 30, 2025
66b03b3
:arrow_up: Bump python-gitlab from 6.3.0 to 6.4.0 (#13278)
dependabot[bot] Sep 30, 2025
3081970
Update docker/login-action action from v3.5.0 to v3.6.0 (.github/work…
renovate[bot] Sep 30, 2025
82b5e9b
:arrow_up: Bump cryptography from 46.0.1 to 46.0.2 (#13290)
dependabot[bot] Oct 1, 2025
5fc6f3b
:arrow_up: Bump drf-spectacular-sidecar from 2025.9.1 to 2025.10.1 (#…
dependabot[bot] Oct 1, 2025
81435f7
:arrow_up: Bump boto3 from 1.40.41 to 1.40.42 (#13288)
dependabot[bot] Oct 1, 2025
c48d541
Add AWS security bulletins to vulnid (#13272)
manuel-sommer Oct 1, 2025
b8eee86
requested review: add data to notification title (#13284)
valentijnscholten Oct 2, 2025
fc44e8b
Update postgres:18.0-alpine Docker digest from 18.0 to 18.0-alpine (d…
renovate[bot] Oct 2, 2025
46f95fc
GitHub Secrets Detection Report Parser (#13286)
Logicmn Oct 2, 2025
62b53d6
Introduce text labels for v3 (#13155)
dogboat Oct 2, 2025
42b518c
Update dependency vite from 7.1.7 to v7.1.8 (docs/package.json) (#13294)
renovate[bot] Oct 2, 2025
ad3b6b7
:arrow_up: Bump boto3 from 1.40.42 to 1.40.43 (#13295)
dependabot[bot] Oct 2, 2025
22d7ece
Similar Findings: Restrict to Product Scope (#13271)
Maffooch Oct 2, 2025
fb85784
Snyk Issue Api Scan "sca" import implementation (#13263)
dshafranskiy-r7 Oct 3, 2025
6142157
Update postgres:18.0-alpine Docker digest from 18.0 to 18.0-alpine (d…
renovate[bot] Oct 3, 2025
d900ef2
performance optimization: add tags in bulk (#13285)
valentijnscholten Oct 3, 2025
7082611
Update dependency vite from 7.1.8 to v7.1.9 (docs/package.json) (#13306)
renovate[bot] Oct 3, 2025
81f3a17
Update close-stale.yml (#13298)
valentijnscholten Oct 3, 2025
40569ba
Auditlog: Add django-pghistory as audit log (optional for now) (#13169)
valentijnscholten Oct 3, 2025
43fe726
:arrow_up: Bump boto3 from 1.40.43 to 1.40.44 (#13308)
dependabot[bot] Oct 3, 2025
3a0cd3c
Update softprops/action-gh-release action from v2.3.3 to v2.3.4 (.git…
renovate[bot] Oct 3, 2025
983f501
Update actions/stale action from v10.0.0 to v10.1.0 (.github/workflow…
renovate[bot] Oct 3, 2025
5881505
Add CVSS details extraction to AWS Inspector2 parser (#13305)
Maffooch Oct 3, 2025
319ea6e
changelog oct 3 (#13315)
paulOsinski Oct 3, 2025
8e400a2
ui import: allow providing test title (#13299)
valentijnscholten Oct 4, 2025
df93de2
search results: enable bulk adding of tags and notes (#13297)
valentijnscholten Oct 4, 2025
77d6bdd
findings list: support ordering by more fields (#13300)
valentijnscholten Oct 4, 2025
7de7ec3
make SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL configurable (#13301)
valentijnscholten Oct 4, 2025
89ac05a
enhance/normalize EDITABLE_MITIGATED_DATA handling (#13303)
valentijnscholten Oct 4, 2025
924ba7f
finding api: fix hash_code for vulnerability_ids (#13304)
valentijnscholten Oct 4, 2025
75d9bb2
twistlock: defend against compliances being null (#13318)
valentijnscholten Oct 4, 2025
5199554
update default audit log type to use django-auditlog
Maffooch Oct 4, 2025
62d52f8
Update redis Docker tag from 7.2.10 to v7.2.11 (docker-compose.yml) (…
renovate[bot] Oct 4, 2025
fad261f
Merge branch 'dev' into audit-log-default
rossops Oct 6, 2025
2ab6c8b
Merge pull request #13321 from DefectDojo/audit-log-default
rossops Oct 6, 2025
6e613d1
upgrade notes: explain performance improvements 2.51 (#13287)
valentijnscholten Oct 6, 2025
b1a5cba
Refactor vulnerability ID and endpoint retrieval in Finding model (#1…
Maffooch Oct 6, 2025
4a80d28
Merge branch 'dev' into bugfix
rossops Oct 6, 2025
4b695cb
Merge pull request #13348 from DefectDojo/bugfix
rossops Oct 6, 2025
add9b4e
Update versions in application files
Oct 6, 2025
f3e1ffb
Updating helm docs
rossops Oct 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This checklist is for your information.
- [ ] Bugfixes should be submitted against the `bugfix` branch.
- [ ] Give a meaningful name to your PR, as it may end up being used in the release notes.
- [ ] Your code is flake8 compliant.
- [ ] Your code is python 3.11 compliant.
- [ ] Your code is python 3.12 compliant.
- [ ] 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.
- [ ] Model changes must include the necessary migrations in the dojo/db_migrations folder.
- [ ] Add applicable tests to the unit tests.
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,24 @@ jobs:
close-stale:
runs-on: ubuntu-latest
steps:
- name: Close stale issues and PRs
- name: Close issues and PRs that are pending closure
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
with:
# Disable automatic stale marking - only close manually labeled items
days-before-stale: -1
days-before-close: 7
stale-issue-label: 'pending-closure'
stale-pr-label: 'pending-closure'
close-issue-message: 'This issue has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
close-pr-message: 'This PR has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'

- name: Close stale issues and PRs
uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
with:
# Disable automatic stale marking - only close manually labeled items
days-before-stale: -1
days-before-close: 7
stale-issue-label: 'stale'
stale-pr-label: 'stale'
close-issue-message: 'This issue has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
close-pr-message: 'This PR has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
close-issue-message: 'This issue has been automatically closed because it was labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
close-pr-message: 'This PR has been automatically closed because it was labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
6 changes: 3 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
extended: true

- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: '22.19.0'
node-version: '22.20.0'

- name: Cache dependencies
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ name: Integration tests

on:
workflow_call:
inputs:
auditlog_type:
type: string
default: "django-auditlog"

jobs:
integration_tests:
# run tests with docker compose
name: User Interface Tests
runs-on: ubuntu-latest
env:
AUDITLOG_TYPE: ${{ inputs.auditlog_type }}
strategy:
matrix:
test-case: [
Expand Down
93 changes: 63 additions & 30 deletions .github/workflows/k8s-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# are tested (https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html#available-versions)
- databases: pgsql
brokers: redis
k8s: 'v1.33.4'
k8s: 'v1.34.0'
os: debian
steps:
- name: Checkout
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Minikube
uses: manusa/actions-setup-minikube@b589f2d61bf96695c546929c72b38563e856059d # v2.14.0
with:
minikube version: 'v1.33.1'
minikube version: 'v1.37.0'
kubernetes version: ${{ matrix.k8s }}
driver: docker
start args: '--addons=ingress --cni calico'
Expand Down Expand Up @@ -108,43 +108,46 @@ jobs:
echo "INFO: status:"
kubectl get pods
echo "INFO: logs:"
kubectl logs --selector=$3 --all-containers=true
kubectl logs --selector=$3 --all-containers=true
exit 1
fi
return ${?}
}
echo "Waiting for init job..."
to_complete "condition=Complete" job "defectdojo.org/component=initializer"
to_complete "condition=Complete" job "defectdojo.org/component=initializer"
echo "Waiting for celery pods..."
to_complete "condition=ready" pod "defectdojo.org/component=celery"
to_complete "condition=ready" pod "defectdojo.org/component=celery"
echo "Waiting for django pod..."
to_complete "condition=ready" pod "defectdojo.org/component=django"
to_complete "condition=ready" pod "defectdojo.org/component=django"
echo "Pods up and ready to rumbole"
kubectl get pods

- name: Test login page
timeout-minutes: 10
run: |-
RETRY=0
while :
do
DJANGO_IP=$(kubectl get svc defectdojo-django -o jsonpath='{.spec.clusterIP}')
OUT=$(kubectl run curl --quiet=true --image=curlimages/curl:8.15.0 \
--overrides='{ "apiVersion": "v1" }' \
--restart=Never -i --rm -- \
--silent \
--max-time 20 \
--head \
--header "Host: $DD_HOSTNAME" \
http://$DJANGO_IP/login?next=/)
"http://${DJANGO_IP}/login?next=/")
echo $OUT
CR=`echo $OUT | egrep "^HTTP" | cut -d' ' -f2`
CR=$(echo $OUT | egrep "^HTTP" | cut -d' ' -f2)
echo $CR
if [[ $CR -ne 200 ]]; then
echo $RETRY
if [[ $RETRY -gt 2 ]]; then
kubectl get pods
echo `kubectl logs --tail=30 -l defectdojo.org/component=django -c uwsgi`
echo $(kubectl logs --tail=30 -l defectdojo.org/component=django -c uwsgi)
echo "ERROR: cannot display login screen; got HTTP code $CR"
exit 1
else
((RETRY++))
RETRY=$((RETRY+1))
echo "Attempt $RETRY to get login page"
sleep 5
fi
Expand All @@ -153,29 +156,51 @@ jobs:
break
fi
done

- name: Test API auth call
timeout-minutes: 10
run: |-
ADMIN_PASS=$(kubectl get secret/defectdojo -o jsonpath='{.data.DD_ADMIN_PASSWORD}' | base64 -d)
echo "Simple API check"
DJANGO_IP=$(kubectl get svc defectdojo-django -o jsonpath='{.spec.clusterIP}')
CR=$(kubectl run curl --quiet=true --image=curlimages/curl:8.15.0 \
--overrides='{ "apiVersion": "v1" }' \
--restart=Never -i --rm -- \
--silent \
--max-time 20 \
--header "Host: $DD_HOSTNAME" \
--data-raw "username=admin&password=$ADMIN_PASS" \
--output /dev/null \
--write-out "%{http_code}\n" \
http://$DJANGO_IP/api/v2/api-token-auth/)
echo $CR
if [[ $CR -ne 200 ]]; then
echo "ERROR: login is not possible; got HTTP code $CR"
exit 1
else
echo "Result received"
fi
RETRY=0
while :
do
OUT=$(kubectl run curl --quiet=true --image=curlimages/curl:8.15.0 \
--restart=Never -i --rm -- \
--dump-header - \
--no-progress-meter \
--max-time 20 \
--header "Host: $DD_HOSTNAME" \
--data-raw "username=admin&password=$ADMIN_PASS" \
"http://${DJANGO_IP}/api/v2/api-token-auth/")
CR=$(echo $OUT | egrep "^HTTP" | cut -d' ' -f2)
echo "Return code $CR"
if [[ $CR -ne 200 ]]; then
echo "Retry: $RETRY"
if [[ $RETRY -gt 2 ]]; then
kubectl get pods
echo $(kubectl logs --tail=30 -l defectdojo.org/component=django -c uwsgi)
echo "ERROR: cannot perform API login; got HTTP code $CR; Full response:"
echo $OUT
exit 1
else
RETRY=$((RETRY+1))
echo "Attempt $RETRY to perform API login"
sleep 5
fi
else
echo "Result received"
break
fi
done

- name: Check of logs
timeout-minutes: 10
run: |-
echo "Final Check of components"
errors=`kubectl get pods | grep Error | awk '{print $1}'`
if [[ ! -z $errors ]]; then
errors=$(kubectl get pods | grep Error | awk '{print $1}')
if [[ ! -z $errors ]]; then
echo "Few pods with errors"
for line in $errors; do
echo "Dumping log from $line"
Expand All @@ -185,3 +210,11 @@ jobs:
else
echo "DD K8S successfully deployed"
fi

- name: Failed Logs
if: failure()
run: |-
echo "ERROR: Here are logs from deployment/defectdojo-django containers:"
kubectl logs deployment/defectdojo-django --all-pods=true --all-containers=true --tail=100
echo "And all pod status one more time"
kubectl get pods
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: "Autolabeler"
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
12 changes: 11 additions & 1 deletion .github/workflows/release-1-create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,23 @@ jobs:
sed -ri "0,/version/s/version: \S+/$NEW_CHART_VERSION/" helm/defectdojo/Chart.yaml
fi

- name: Update values in HELM chart
run: |
yq -i '.annotations."artifacthub.io/prerelease" = "false"' helm/defectdojo/Chart.yaml
yq -i '.annotations."artifacthub.io/changes" += "- kind: changed\n description: Bump DefectDojo to ${{ inputs.release_number }}\n"' helm/defectdojo/Chart.yaml

- name: Check version numbers
run: |
grep -H version dojo/__init__.py
grep -H version components/package.json
grep -H appVersion helm/defectdojo/Chart.yaml
grep -H version helm/defectdojo/Chart.yaml

- name: Run helm-docs
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
with:
chart-search-root: "helm/defectdojo"

- name: Push version changes
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
with:
Expand All @@ -97,7 +107,7 @@ jobs:
branch: ${{ env.NEW_BRANCH }}

- name: Create Pull Request
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/release-3-master-into-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ jobs:
git add docs/content/en/open_source/upgrading/$minorv.md
if: endsWith(inputs.release_number_new, '.0') && endsWith(inputs.release_number_dev, '.0-dev')

- name: Update values in HELM chart
run: |
yq -i '.annotations = {}' helm/defectdojo/Chart.yaml
yq -i '.annotations."artifacthub.io/prerelease" = "true"' helm/defectdojo/Chart.yaml
yq -i '.annotations."artifacthub.io/changes" = ""' helm/defectdojo/Chart.yaml

- name: Run helm-docs
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
with:
chart-search-root: "helm/defectdojo"

- name: Push version changes
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
with:
Expand All @@ -84,7 +95,7 @@ jobs:
branch: ${{ env.NEW_BRANCH }}

- name: Create Pull Request
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down Expand Up @@ -139,6 +150,17 @@ jobs:
grep appVersion helm/defectdojo/Chart.yaml
grep version components/package.json

- name: Update values in HELM chart
run: |
yq -i '.annotations = {}' helm/defectdojo/Chart.yaml
yq -i '.annotations."artifacthub.io/prerelease" = "true"' helm/defectdojo/Chart.yaml
yq -i '.annotations."artifacthub.io/changes" = ""' helm/defectdojo/Chart.yaml

- name: Run helm-docs
uses: losisin/helm-docs-github-action@a57fae5676e4c55a228ea654a1bcaec8dd3cf5b5 # v1.6.2
with:
chart-search-root: "helm/defectdojo"

- name: Push version changes
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
with:
Expand All @@ -149,7 +171,7 @@ jobs:
branch: ${{ env.NEW_BRANCH }}

- name: Create Pull Request
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-x-manual-docker-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: echo "DOCKER_ORG=$(echo ${GITHUB_REPOSITORY%%/*} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Login to DockerHub
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release-x-manual-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,11 @@ jobs:

- name: Configure HELM repos
run: |-
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency list ./helm/defectdojo
helm dependency update ./helm/defectdojo

- name: Add yq
uses: mikefarah/yq@f03c9dc599c37bfcaf533427211d05e51e6fee64 # v4.47.1
uses: mikefarah/yq@6251e95af8df3505def48c71f3119836701495d6 # v4.47.2

- name: Pin version docker version
id: pin_image
Expand All @@ -88,7 +87,7 @@ jobs:
echo "chart_version=$(ls build | cut -d '-' -f 2,3 | sed 's|\.tgz||')" >> $GITHUB_ENV

- name: Create release ${{ inputs.release_number }}
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
with:
name: '${{ inputs.release_number }} 🌈'
tag_name: ${{ inputs.release_number }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
merge-multiple: true

- name: Login to DockerHub
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-x-manual-tag-as-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: echo "DOCKER_ORG=$(echo ${GITHUB_REPOSITORY%%/*} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Login to DockerHub
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/rest-framework-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ on:
platform:
type: string
default: "linux/amd64"
auditlog_type:
type: string
default: "django-auditlog"

jobs:
unit_tests:
name: Rest Framework Unit Tests
runs-on: ${{ inputs.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
env:
AUDITLOG_TYPE: ${{ inputs.auditlog_type }}

strategy:
matrix:
Expand Down
Loading