Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
defectdojo_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Raul Barreras
defectdojo_api
Commits
51ac3f5a
Commit
51ac3f5a
authored
7 years ago
by
Kirill Pavlov
Browse files
Options
Downloads
Patches
Plain Diff
Add minimum_severity field
parent
d1409070
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
defectdojo_api/defectdojo.py
+6
-4
6 additions, 4 deletions
defectdojo_api/defectdojo.py
with
6 additions
and
4 deletions
defectdojo_api/defectdojo.py
+
6
−
4
View file @
51ac3f5a
...
@@ -640,7 +640,7 @@ class DefectDojoAPI(object):
...
@@ -640,7 +640,7 @@ class DefectDojoAPI(object):
##### Upload API #####
##### Upload API #####
def
upload_scan
(
self
,
engagement_id
,
scan_type
,
file
,
active
,
scan_date
,
tags
=
None
,
build
=
None
):
def
upload_scan
(
self
,
engagement_id
,
scan_type
,
file
,
active
,
scan_date
,
tags
=
None
,
build
=
None
,
minimum_severity
=
"
Info
"
):
"""
Uploads and processes a scan file.
"""
Uploads and processes a scan file.
:param application_id: Application identifier.
:param application_id: Application identifier.
...
@@ -660,7 +660,8 @@ class DefectDojoAPI(object):
...
@@ -660,7 +660,8 @@ class DefectDojoAPI(object):
'
active
'
:
(
''
,
active
),
'
active
'
:
(
''
,
active
),
'
scan_date
'
:
(
''
,
scan_date
),
'
scan_date
'
:
(
''
,
scan_date
),
'
tags
'
:
(
''
,
tags
),
'
tags
'
:
(
''
,
tags
),
'
build_id
'
:
(
''
,
build
)
'
build_id
'
:
(
''
,
build
),
'
minimum_severity
'
:
(
''
,
minimum_severity
)
}
}
return
self
.
_request
(
return
self
.
_request
(
...
@@ -670,7 +671,7 @@ class DefectDojoAPI(object):
...
@@ -670,7 +671,7 @@ class DefectDojoAPI(object):
##### Re-upload API #####
##### Re-upload API #####
def
reupload_scan
(
self
,
test_id
,
scan_type
,
file
,
active
,
scan_date
,
tags
=
None
,
build
=
None
):
def
reupload_scan
(
self
,
test_id
,
scan_type
,
file
,
active
,
scan_date
,
tags
=
None
,
build
=
None
,
minimum_severity
=
"
Info
"
):
"""
Re-uploads and processes a scan file.
"""
Re-uploads and processes a scan file.
:param test_id: Test identifier.
:param test_id: Test identifier.
...
@@ -690,7 +691,8 @@ class DefectDojoAPI(object):
...
@@ -690,7 +691,8 @@ class DefectDojoAPI(object):
'
active
'
:
(
''
,
active
),
'
active
'
:
(
''
,
active
),
'
scan_date
'
:
(
''
,
scan_date
),
'
scan_date
'
:
(
''
,
scan_date
),
'
tags
'
:
(
''
,
tags
),
'
tags
'
:
(
''
,
tags
),
'
build_id
'
:
(
''
,
build
)
'
build_id
'
:
(
''
,
build
),
'
minimum_severity
'
:
(
''
,
minimum_severity
)
}
}
return
self
.
_request
(
return
self
.
_request
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment