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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Support CBOM (1.6 specification) (#140) #142

Draft
wants to merge 4 commits into
base: spec/1.6
Choose a base branch
from

Conversation

Petzys
Copy link

@Petzys Petzys commented Apr 24, 2024

馃毀 WIP 馃毀
This PR is meant to implement the CBOM specification from specification 1.6. It might be extended to include to full scope of 1.6.

As I mainly use this module to decode JSON BOMs, I might or might not continue development on this PR. Contributions of any kind are highly appreciated.

Partly addresses #140.

Signed-off-by: Petzys <87223648+Petzys@users.noreply.github.com>
Signed-off-by: Petzys <87223648+Petzys@users.noreply.github.com>
Signed-off-by: Petzys <87223648+Petzys@users.noreply.github.com>
cyclonedx.go Outdated
AssetTypeRelatedCryptoMaterial AssetType = "related-crypto-material"
)

type Primitive string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these types have rather generic names (e.g. Primitive, Mode). We need to pay attention that we won't cause naming collisions as the spec grows. Consider prefixing some of these types so they're "pseudo-namespaced". For example CryptoPrimitive instead of Primitive.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I see your point and I agree. I think Crypto works as a prefix. I will work on that.

Signed-off-by: Petzys <87223648+Petzys@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants