Skip to content

SBOM cpe and extra info - #20337

Open
ErniGH wants to merge 4 commits into
conan-io:develop2from
ErniGH:erni/sbom-cpe-and-extra_info
Open

ErniGH wants to merge 4 commits into
conan-io:develop2from
ErniGH:erni/sbom-cpe-and-extra_info

Conversation

@ErniGH

@ErniGH ErniGH commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Changelog: Feature: Add CPE to SBOM and provide a parameter for extra info
Docs: https://github.com/conan-io/docs/pull/XXXX

#20308

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

from conan.tools.sbom.cyclonedx import _calculate_bomref

def post_package(conanfile):
extra_info = {{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

@memsharded memsharded self-assigned this Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants