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

feat: File-type components and hashes #1235

Open
jkowalleck opened this issue Nov 9, 2023 · 1 comment
Open

feat: File-type components and hashes #1235

jkowalleck opened this issue Nov 9, 2023 · 1 comment
Labels
enhancement New feature or request hacktoberfest help wanted Extra attention is needed

Comments

@jkowalleck
Copy link
Member

jkowalleck commented Nov 9, 2023

currently, SBOM "components" are detected based an a package.json file.
thats cool for most situatons.

but what if there is just no package.json? or it is untrusted for reasons?

Let's add file-based (sub-)components, that have a proper hash to them.
-> the feature is disabled by default, can be enabled by a new config option. name to be defined.

expected outcome:

  • components that represent "packages" have sub-components, one for each file that us used.
    • each of the file-based sub-components has a computed set of hashes on them.
    • each of the file-based sub-components name is the relative path of the file. relative to the root component.
  • if no package.json can be found (other than the projects own one), then the file used by webpack should be resulting in a SBOM component of type "file",
    • each of the file-based components has a computed set of hashes on them.
    • each of the file-based components name is the relative path of the file. relative to the root component.

May need an extra property taxonomy cdx:webpack according to https://github.com/CycloneDX/cyclonedx-property-taxonomy

@jkowalleck
Copy link
Member Author

as soon as this is implemented, publish example files here: CycloneDX/bom-examples#38

@jkowalleck jkowalleck changed the title File-type components and hashes feat: File-type components and hashes Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant