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
cf9f3cd0
Commit
cf9f3cd0
authored
7 years ago
by
aaron.weaver2@gmail.com
Browse files
Options
Downloads
Patches
Plain Diff
Adding support for build info
parent
9db7d600
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defectdojo_api/__init__.py
+1
-1
1 addition, 1 deletion
defectdojo_api/__init__.py
defectdojo_api/defectdojo.py
+20
-0
20 additions, 0 deletions
defectdojo_api/defectdojo.py
with
21 additions
and
1 deletion
defectdojo_api/__init__.py
+
1
−
1
View file @
cf9f3cd0
__version__
=
'
1.1.
2
'
__version__
=
'
1.1.
3
'
This diff is collapsed.
Click to expand it.
defectdojo_api/defectdojo.py
+
20
−
0
View file @
cf9f3cd0
...
...
@@ -659,6 +659,26 @@ class DefectDojoAPI(object):
return
self
.
_request
(
'
PUT
'
,
'
findings/
'
+
str
(
finding_id
)
+
'
/
'
,
data
=
data
)
##### Build Details API #####
def
build_details
(
self
,
engagement_id
,
json
):
"""
Uploads commit file changes to an engagement.
:param engagement_id: Engagement identifier.
:param file: File/Json with meta data to be uploaded.
"""
data
=
{
'
file
'
:
json
,
'
engagement
'
:
(
''
,
self
.
get_engagement_uri
(
engagement_id
))
}
return
self
.
_request
(
'
POST
'
,
'
build_details/
'
,
files
=
data
)
##### Upload API #####
def
upload_scan
(
self
,
engagement_id
,
scan_type
,
file
,
active
,
scan_date
,
tags
=
None
,
build
=
None
,
minimum_severity
=
"
Info
"
):
...
...
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