Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPE as a type #9

Closed
riteshnoronha opened this issue Feb 3, 2023 · 1 comment · Fixed by #32
Closed

CPE as a type #9

riteshnoronha opened this issue Feb 3, 2023 · 1 comment · Fixed by #32
Assignees
Labels
enhancement New feature or request

Comments

@riteshnoronha
Copy link
Contributor

Currently we implicitly trust the content in a CPE field to be a valid CPE. Its quite possible
the CPE does not follow the CPE specification.

To ensure that in fact these URL match spec, we should introduce cpe as a type, with a Valid method.

@riteshnoronha riteshnoronha added the enhancement New feature or request label Feb 3, 2023
@surendrapathak
Copy link
Collaborator

This should be a new quality check. The presence of ID does pass the Minimum Element, and the requirements do not exactly specify meeting CPE criteria (see below). Therefore a new quality check makes logical sense.

https://www.ntia.doc.gov/files/ntia/publications/sbom_minimum_elements_report.pdf

Other unique identifiers support automated efforts to map data across data uses and ecosystems and can reinforce certainty in instances of uncertainty. Examples of commonly used unique identifiers are Common Platform Enumeration (CPE),9 Software Identification (SWID) tags,10 and Package Uniform Resource Locators (PURL). 11 These other identifiers may not be available for every piece of software, but should be used if they exist.

@kchetans kchetans linked a pull request Feb 11, 2023 that will close this issue
@kchetans kchetans self-assigned this Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants