Skip to content

update dojo #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion defectdojo/Dockerfile.django
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM defectdojo/defectdojo-django:2.35.2 as dd
FROM defectdojo/defectdojo-django:2.44.1 as dd

FROM dd as patch

Expand Down
4 changes: 4 additions & 0 deletions zap/src/defectdojo_apiv2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import json
import mimetypes
import os

import requests
import requests.exceptions
Expand Down Expand Up @@ -687,6 +689,8 @@ def upload_scan(self, engagement_id, scan_type, file, active, verified, close_ol
print("filedata:")
print(filedata)

filedata = ('report.xml', filedata, mimetypes.guess_type(file)[0])

data = {
'file': filedata,
'engagement': ('', engagement_id),
Expand Down