- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 77
 
fix: XML serialization of components with authors results in invalid CycloneDX SBOM #708
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
base: master
Are you sure you want to change the base?
Conversation
…thors to produce schema-compliant <authors><author>...</author></authors> structure, resolving the issue of nested <authors> tags. Add backward compatibility to support legecy format: <authors><authors>...</authors></authors> Signed-off-by: jjhz <[email protected]>
Signed-off-by: jjhz <[email protected]>
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.30.1 to 3.30.2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@f1f6e5f...d3678e2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 3.30.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: jjhz <[email protected]>
Signed-off-by: jjhz <[email protected]>
Signed-off-by: James Jiang <[email protected]>
          Coverage summary from CodacySee diff coverage on Codacy
 Coverage variation details
 Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:  Diff coverage details
 Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:  See your quality gate settings Change summary preferences | 
    
          
 Hey @jjhz Thanks for working on this issue I've also been working on solving #638 independently and wanted to share my approach for comparison, I just have time to actually share what I did #730 I noticed a few potential considerations with the current PR: 
 I took a slightly different approach using a BeanSerializerModifier (similar to the existing CustomSerializerModifier pattern in the codebase), which: 
 I've created a comprehensive test suite (22 tests) covering all scenarios including version migrations, and everything passes including the full test suite. My changes are on the issue_638 branch if you'd like to compare approaches. I'm happy to collaborate or discuss which solution would be best for the project!  | 
    
Fix #638
@mr-zepol Could you review this?
<authors><author>...</author></authors>structure, resolving the issue of nested<authors>tags.<authors><authors>...</authors></authors>When using cyclonedx-core-java to write a CycloneDX SBOM as an XML, the resulting SBOM is invalid (nested
<authors>ag).we should expect the author list to be: