mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 00:33:08 +00:00
SBoM Test
Test that SBoM gets generated and unified. This test does not launch the image, so it doesn't matter much that what is in it is runnable, only that it gets built.
This test uses local packages inside the directory, to ensure that we get a known and controlled SBoM.
How it works:
- Builds the packages in ./package1 and ./package2
- Builds the image in ./test.yml
- Checks that the image contains an SBoM in the expected location
- Checks that the SBoM contains at least some expected packages
To update
If you change the packages in ./package1 or ./package2, you will need to update the ./test.yml file to reflect the new versions.
linuxkit pkg show-tag ./package1linuxkit pkg show-tag ./package2- Update the
onbootsection of ./test.yml with the new versions