fortifyadmin / fortifyapi Goto Github PK
View Code? Open in Web Editor NEWPython library for Fortify Software Security Center (SSC) RESTFul API
License: MIT License
Python library for Fortify Software Security Center (SSC) RESTFul API
License: MIT License
Hi,
I am not very experienced at python but I can't seem to find / call the first 3 documented method?
More specifically:
Hi,
I am wondering, is there any fortify scan ran on fortifyapi itself ? I tried to look in what I think is your CI configuration (https://github.com/fortifyadmin/fortifyapi/blob/master/.circleci/config.yml) and I didn't see any scan being started. But most likely I am looking at the wrong place ;)
Cheers,
Romain
Because fortifyapi is using the ":=" Python operator, users with Python < 3.8 can't use the module
get_projects and get_all_project_version not working with ssc 21.1.1
TypeError: 'NoneType' object is not subscriptable
There was an error while handling the request. 400 Client Error: for url: https://fortify:8443/ssc/api/v1/projects?start=-1&limit=-1
When using the new interface for getting issues details, no data is returned:
def get_project_version_issue_details(
self, instance_id, project_name, version_name, engine="SCA"
):
This triggers the API endpoint with the following parameters:
/api/v1/issueDetails?instanceId=10108&projectName=myproject&projectVersionName=myversion&engineType=SCA
In [4]: response = client.get_project_version_issue_details(10108, "myproject", "myversion")
In [5]: response.data
Out[5]: {'data': [], 'count': 0, 'responseCode': 200}
In [6]: response.success
Out[6]: True
In [7]: response.message
Out[7]: 'OK'
> Both project name and version name are corrected, I even tried using the version id, but getting the same results.
When I use the old version:
```python
def get_project_version_issue_details(self, issue_id):
"""
>> Returns trace analysis and other details of a given issue. The issue ID can be found from the /issues or
projectVersions endpoint.
:param issue_id:
:return: full detail of a given issue
"""
url = '/api/v1/issueDetails/' + str(issue_id)
return self._request('GET', url)
Which triggers the endpoint:
/api/v1/issueDetails/10108
It returns the issue details correctly.
In bulk_create_new_application_version_request
, the custom attributes parameter only allows 1 custom attribute to be specified and only allows for attributes with where the user is to enter data, not those which have selectable options.
A proposed fix would to extend custom_attributes to be an array, consisting of 3 items tuples where idx1=attrId, idx2=values, idx3=value.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.