Repository navigation
feat: gather component identity evidence - #1122
Draft
EltonChang1 wants to merge 1 commit into
Draft
EltonChang1 wants to merge 1 commit into
EltonChang1 wants to merge 1 commit into
Conversation
Add opt-in manifest analysis for declared component names and versions across all four builders and root project metadata. Preserve default output and existing license evidence. Fixes CycloneDX#829 Signed-off-by: Elton Chang <80650461+Notle-eltoN@users.noreply.github.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | ✅ 4 (≤ 20 complexity) |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Documentation build overview
|
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.
Description
Add
--gather-identity-evidenceto record the metadata sources of component names and concrete versions. The option works with environment, requirements, Pipenv, and Poetry input, including root component metadata frompyproject.toml. It is disabled by default, preserving existing output.Each declared field receives a
manifest-analysismethod and its source label. Method confidence of 1 describes direct extraction, not authentication of the package or metadata. Missing/unpinned versions and identities inferred from requirements URLs or local paths are omitted. Source labels contain no absolute paths or requirement contents, and existing license evidence is preserved.CycloneDX 1.6+ retains both identities and concluded values. The library projects this to the single name identity supported by 1.5 and omits identity evidence for older schemas. Raise the minimum
cyclonedx-python-libversion to 10.2, where the required identity APIs were introduced, and document the option and schema behavior.Fixes #829.
Validation on Windows/Python 3.12:
docs/_staticdirectory.The full environment fixture/snapshot matrix and supported Python version matrix were not run locally and remain for upstream CI.
AI Tool Disclosure
Affirmation