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

[REQ] Get results from scan in CLI #541

Closed
MAP4H opened this issue Jun 6, 2023 · 5 comments
Closed

[REQ] Get results from scan in CLI #541

MAP4H opened this issue Jun 6, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@MAP4H
Copy link

MAP4H commented Jun 6, 2023

Is your request related to a workflow problem?

I haven't found a way to pull all the scan results in one single request(I mean all the scan results from all the sast projects), is there any way to perform this? Something I´m missing? right now I have only found to export the results with ./cx results show --scan-id , but it is limited to one scan id at a time

Propose a solution

A clear and concise description of what you want to happen.

Additional comments

Would be nice to export all the project vulnerabilities in one request and export to json

@MAP4H MAP4H added the enhancement New feature or request label Jun 6, 2023
@github-actions
Copy link

github-actions bot commented Jun 6, 2023

Internal Jira issue: AST-25725

@Yoavast
Copy link

Yoavast commented Jun 6, 2023

Hi @MAP4H
Thank you for reaching out and sharing your enhancement request. I understand that you are looking for a way to pull all the scan results from all projects in one single request.

To provide you with the correct solution, I would like to clarify whether you are using Checkmarx One or CxSAST?
This is because you mentioned "the scan results from all the SAST projects."
In Checkmarx One we do not have a base engine project type.

Yoav

@MAP4H
Copy link
Author

MAP4H commented Jun 6, 2023

Hi @MAP4H Thank you for reaching out and sharing your enhancement request. I understand that you are looking for a way to pull all the scan results from all projects in one single request.

To provide you with the correct solution, I would like to clarify whether you are using Checkmarx One or CxSAST? This is because you mentioned "the scan results from all the SAST projects." In Checkmarx One we do not have a base engine project type.

Yoav

Hello, I´m using Checkmarx One, sorry for the confusion. I´m trying to find a way to get all the results trough the CLI. Any ideas?

@Yoavast
Copy link

Yoavast commented Jun 11, 2023

We currently do not have a dedicated command to retrieve all the results. However, this is something that we could consider adding to our CLI roadmap as we continue to enhance our platform's reporting capabilities.

To better assist you, it would be helpful to understand why you need to retrieve all the results in a single JSON file.
Also, are you looking for a summary of the total number of results per project, or do you require detailed results for each issue?

In the meantime, as a workaround, you can create a script that gets a list of all scan IDs and then iterates through them using the ./cx results show --scan-id command. The script can aggregate all the JSON reports into a single file.

@jbrotsos
Copy link
Contributor

Closing issue - this can be done with a script with the CLI as a wrapper:

  1. Get list of projects
  2. Get scan results for each projetct.

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

No branches or pull requests

4 participants