Skip to content

[ISV-5784] Rewrite product-level SBOM generation#415

Merged
mmalina merged 5 commits intokonflux-ci:mainfrom
jedinym:refactor-product-sbom
Apr 24, 2025
Merged

[ISV-5784] Rewrite product-level SBOM generation#415
mmalina merged 5 commits intokonflux-ci:mainfrom
jedinym:refactor-product-sbom

Conversation

@jedinym
Copy link
Copy Markdown
Contributor

@jedinym jedinym commented Apr 17, 2025

The product-level SBOM generation is refactored to use the mapped snapshot spec and the merged data file as a source of truth. This makes the implementation simpler to understand and maintain.

The spdx-tools library is used to generate the SBOM and validate it, to assure its quality.
Tests are written to check that the expected properties on the SBOM hold.

This PR depends on the changes in #399.

@jedinym jedinym force-pushed the refactor-product-sbom branch 4 times, most recently from 8a1b691 to 7a1fc04 Compare April 21, 2025 08:17
@jedinym jedinym marked this pull request as ready for review April 21, 2025 08:29
@jedinym jedinym requested a review from a team as a code owner April 21, 2025 08:29
Copy link
Copy Markdown
Contributor

@mmalina mmalina left a comment

Choose a reason for hiding this comment

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

I added a few comments, but I didn't go deep into the functionality. Hopefully someone else from your team can review this as well.

@jedinym
Copy link
Copy Markdown
Contributor Author

jedinym commented Apr 22, 2025

@Allda please take look 🦑

@Allda
Copy link
Copy Markdown
Contributor

Allda commented Apr 22, 2025

/lgtm

@Allda
Copy link
Copy Markdown
Contributor

Allda commented Apr 22, 2025

Nice refactoring and usage of the spdx schema library 👍

jedinym added 5 commits April 24, 2025 09:52
Signed-off-by: Martin Jediny <jedinym@proton.me>
The product-level SBOM generation is refactored to utilize the new
sbomlib library to parse the snapshot spec. The spdx tools python
library is also used to generate the SPDX SBOM.

Signed-off-by: Martin Jediny <jedinym@proton.me>
Signed-off-by: Martin Jediny <jedinym@proton.me>
Signed-off-by: Martin Jediny <jedinym@proton.me>
Signed-off-by: Martin Jediny <jedinym@proton.me>
@jedinym jedinym force-pushed the refactor-product-sbom branch from dc208f4 to c6ab369 Compare April 24, 2025 07:52
@jedinym
Copy link
Copy Markdown
Contributor Author

jedinym commented Apr 24, 2025

/retest

@mmalina mmalina merged commit a175a05 into konflux-ci:main Apr 24, 2025
6 checks passed
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.

4 participants