Adding debian support to generate_sbom #997
Merged
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.
Added support for debian images to generate_sbom.
It checks if it is a debian based image by evaluating the os-release file.
It introduces some new BuildFlags to configure "special" behaviour:
spdx-declared-license:NOASSERTION
licenseDeclared in spdx info for a package is set to "NOASSERATION",if not set the found license from the package information is used (like for "licenseConcluded").
The license information is taken from the package's copyrightfile.
The generation of spdx' file section can be disabled, if just the package information is wanted.
This can be switched by buildflag "spdx-files-generation". To switch it off it has to be set to "no":
spdx-files-generation:no
.Default is to generate also the files information. This option is just available in the deb-handling. No changes to rpm made here.
As debian packages does not have a vendor information this information is taken from the
OBS vendor macro/OBS instance name.
Added the sbom generation also to build-receipe-livebuild for a first usage.