Skip to content

Conversation

zvigrinberg
Copy link
Contributor

@zvigrinberg zvigrinberg commented Oct 5, 2023

Description

Remove dummy root component from sbom for python/pip, as in python you don't have a root component, just a list of required packages/modules in requirements.txt

Currently when trying to call exhort with dummy root component in sbom ( for a python pip manifest) , it's returning http status 422 ( Unprocessable entity )

For the purpose, Added new sbom generic feature, to remove from sbom the root component :

  1. from components list.
  2. from dependencies list.
  3. and from metadata

currently it will be used only by Python/pip.

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
@zvigrinberg zvigrinberg merged commit b6d4577 into main Oct 5, 2023
@zvigrinberg zvigrinberg deleted the python-remove-root-element branch October 5, 2023 05:37
zvigrinberg added a commit to trustification/exhort-java-api that referenced this pull request Oct 5, 2023
## Description

Remove dummy root component from sbom for python/pip, as in python you
don't have a root component, just a list of required packages/modules in
requirements.txt

For the purpose, Added new sbom generic feature, to remove from sbom the
root component :

from components list.
from dependencies list.
and from metadata
currently it will be used only by Python/pip.

related to:
trustification/exhort-javascript-api#58

Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant