Skip to content
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

[Question]: How to get the vulnerabilities of "Code Analysis" #215

Open
AjayJagan opened this issue Feb 12, 2024 · 2 comments
Open

[Question]: How to get the vulnerabilities of "Code Analysis" #215

AjayJagan opened this issue Feb 12, 2024 · 2 comments

Comments

@AjayJagan
Copy link

AjayJagan commented Feb 12, 2024

I have a project, which has some code analysis vulnerabilities.
when I do
project.issueset_aggregated.all()
it returns IssueSetAggregated(issues=[])

when I look at the issueCountsBySeverity
issueCountsBySeverity=IssueCounts(low=31, medium=22, high=30, critical=0)

I need to understand why it is not capturing these issues.
Any help is appreciated.

@ig596
Copy link
Contributor

ig596 commented Mar 23, 2024

It doesn't look like this is implemented in the codebase presently. You can try calling the old endpoint directly and manually overriding the project attribute with the response cast into the proper model.

Which API version Client are you using?
Here is the relevant API call from the old version
But its not fully implemented in the code Client Get Issues

It appears to me that the new API doesn't support pulling issues from the project at this time.

The Project object from the new API only has the counts not the actual issues.

ProjectManager
IssueSetAggregatedManager

@AjayJagan
Copy link
Author

Which API version Client are you using? -> pysnyk==0.9.19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants