checkmarx-ltd / cx-flow

Checkmarx Scan and Result Orchestration
Apache License 2.0
88 stars 87 forks source link

GitLab support for deleting CxSAST Project upon Branch Deletion #509

Open brenwhyte opened 3 years ago

brenwhyte commented 3 years ago

Describe the problem

CxFlow automatically deletes CxSAST projects upon branch deletion in GitLab

Proposed solution

Same as here, using the use-config-as-code-from-default-branch: true option

Additional details

This is just a shot in the dark as I know users are already asking for it. I'm aware GitLab doesn't expose the "Branch or tag deletion" events in the webhook configuration compared to say GitHub/Azure Devops.

If this is being looked into, a rough time frame for implementation would be great. (assuming it's even possible!)

vlsecurity commented 10 months ago

@james-bostock-cx, hi, any update on this? Gitlab has this feature but seems it's not supported by cx-flow https://docs.gitlab.com/ee/ci/yaml/#environmenton_stop

james-bostock-cx commented 10 months ago

Hi @vlsecurity, GitLab has this feature but it is not documented, which is why support for it has not been added to CxFlow. I understand that GitLab does plan to document it though, with version 16.7 being the currently targetted version. Once it is documented, I will create a feature request (the internal Checkmarx process for enhancing the software) and we will see how it goes.