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

Enable Project Deletion/Cleanup using CLI mode #734

Open
cx-scord opened this issue May 18, 2021 · 0 comments
Open

Enable Project Deletion/Cleanup using CLI mode #734

cx-scord opened this issue May 18, 2021 · 0 comments
Assignees
Labels

Comments

@cx-scord
Copy link
Contributor

Describe the problem

Project deletion/cleanup is only available using branch deletion in webhook mode, this usually means that when using CxFlow CLI in CI/CD to generate branch projects that they will remain in Checkmarx supported products (CxSAST, CxSCA, ...) unless someone develops a script to delete them using the API or deleting them by hand.

Proposed solution

The solution would be split in 2 modes:

  1. Delete project standalone mode
    • Implement a driving --delete parameter like --scan or --project, providing at least --cx-team=... and --cx-project=... and/or any other required parameter, like --sca.team=... so CxFlow CLI can be used in CI/CD to support projects' deletion/cleanup from Checkmarx products.
  2. Delete a project together with other driving parameters:
    • Sometimes, one just want to scan and fetch the results immediately, without the need of the project staying persisted in Checkmarx products, so having a --delete-project parameter added after --scan, --project, --parse and --batch would delete the project after running CLI in any of these driving options so you don't need to waste time using an extra standalone deletion task like in 1., sparing the pipeline of Cxflow's startup time too.

Additional details

This would shave the required time to develop project removal scripts (using APIs).

@cx-scord cx-scord added the enhancement New feature or request label May 18, 2021
@jbrotsos jbrotsos self-assigned this Jun 2, 2021
@jbrotsos jbrotsos added the priority:medium Medium Priority label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants