Checkmarx / ast-cli

A CLI project wrapping application security testing (AST) APIs
Apache License 2.0
37 stars 26 forks source link

[REQ] Add the possibility to set the gitlab base url for pull request decoration #843

Open STerraxX opened 4 weeks ago

STerraxX commented 4 weeks ago

Is your request related to a workflow problem?

Currently, it looks like we can't custom the Gitlab base URL to set a self-managed gitlab instance instead of cloud hosted ones. I would like to add pull request decoration on my self hosted instance.

Propose a solution

A new flag on the "utils pr gitlab" allowing us to custom the base URL for Gitlab, and/or a environnement variable to set it one time.

Additional comments

Nothing to add.

fallais commented 1 week ago

Same for Github...

But I think it won't be easily possible, as the CLI uses a CxOne REST API endpoint : api/flow-publisher/pr/github. Which means that the decoration is done by CxOne itself and not the CLI.

See here : https://github.com/Checkmarx/ast-cli/blob/main/internal/params/binds.go#L29