fortify / fcli

fcli is a command-line utility for interacting with various Fortify products
https://fortify.github.io/fcli/
Other
34 stars 22 forks source link

`fcli util ncd-report`: GitLab Group ID needs to be used instead of Group Name #296

Closed MikeTheSnowman closed 1 year ago

MikeTheSnowman commented 1 year ago

fcli version: fcli version 0.20230505.122628-dev_2.0.0-beta, built on 2023-05-05 12:26:58

Issue:

When trying to then generate the report using a group name applied to the GitLab's group.name attribute, the ncd-report generate function will produce the following error in the report-errors.csv file: image

The resulting 404 error is because the API does not accept the Group Name, but instead requires the Group ID to be provided.

As an example, this screenshot of my config below does not work, when a Group Name is provided: image

But using this group's Group ID does work: image

Possible Solutions:

  1. Either rename the groups.name attribute to groups.id
  2. Or update fcli to resolve the Group ID from the provided Groun Name

References:

MikeTheSnowman commented 1 year ago

On further investivation with @rsenden , it was discovered that you can use either the numerical ID or the ID/Path that's present in url bar of your browser. When referencing sub-groups or nested sub-groups, you'll you can use the full path from top-level patent group to the nested sub-group: image

rsenden commented 1 year ago

Closed by 5e8657e