Skip to content

Add package supplier info to Tern reports - #1213

Merged
rnjudge merged 2 commits into
tern-tools:mainfrom
rnjudge:pkg-supplier
Feb 28, 2023
Merged

rnjudge merged 2 commits into
tern-tools:mainfrom
rnjudge:pkg-supplier

Conversation

@rnjudge

@rnjudge rnjudge commented Feb 8, 2023

Copy link
Copy Markdown
Contributor

This commit adds package supplier information as an attribute in the
package class for package objects. This commit also adds
pkg_supplier attribute values as PackageSupplier field values in
Tag Value and JSON SPDX documents .

For some package managers (like PyPI), there is only one feasible
supplier (PyPI) and this value is set as a constant string (PyPI). For
others, like rpm, the string is determined using the /etc/os-release
file based on the Linux Distro providing the packages. While this is
not a perfect way to determine the distro/distributor, it is satisfactory
to satisfty the NTIA minimum elements for the upcoming EO 14028.
We decided to use the distro as the supplier based on conversations
had on the SPDX mailing list[1].

[1] https://lists.spdx.org/g/Spdx-tech/message/4942

Resolves #1205

This commit adds package supplier information as an attribute in the
package class for package objects. For some package managers (like
PyPI), there is only one feasible supplier (PyPI) and this value is
set as a constant string (PyPI). For others, like rpm, the
string is determined using the /etc/os-release file based on the Linux
Distro providing the packages. While this is not a perfect way to
determine the distro/distributor, it is satisfactory to satisfty the
NTIA minimum elements for the upcoming EO 14028.

We decided to use the distro as the supplier based on conversations had
on the SPDX mailing list[1].

[1] https://lists.spdx.org/g/Spdx-tech/message/4942

Works towards tern-tools#1205

Signed-off-by: Rose Judge <rjudge@vmware.com>
This commit adds `pkg_supplier` attribute values as `PackageSupplier`
field values in Tag Value and JSON SPDX documents .

Resolves tern-tools#1205

Signed-off-by: Rose Judge <rjudge@vmware.com>
@rnjudge
rnjudge merged commit b45e584 into tern-tools:main Feb 28, 2023
@rnjudge
rnjudge deleted the pkg-supplier branch July 20, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant