SBOM cpe and extra info - #20337
Open
ErniGH wants to merge 4 commits into
Open
SBOM cpe and extra info#20337ErniGH wants to merge 4 commits into
ErniGH wants to merge 4 commits into
Conversation
memsharded
reviewed
Sep 11, 2026
| from conan.tools.sbom.cyclonedx import _calculate_bomref | ||
|
|
||
| def post_package(conanfile): | ||
| extra_info = {{ |
Member
There was a problem hiding this comment.
I think the system should be prepared to add extra_info in the recipes directly, not only externally in hooks. The recipe way should be the main/default mechanism, for example, I would expect open source recipes to start adding the cpe definitions in the recipe, so their generated sboms and cpes are correct without needing an extra hook with the DB of all special open source cases.
Lets talk about this point with @jcar87
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog: Feature: Add CPE to SBOM and provide a parameter for extra info
Docs: https://github.com/conan-io/docs/pull/XXXX
#20308
developbranch, documenting this one.