-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add purl information to SPDX reports
This commit adds a new function, get_purl() to spdx_common.py which uses the `packageurl` library to generate purl strings for given package objects. The namespace for certain purls is determined using the /etc/os-release file information collected via the pkg_suppliers field in base.yml. This commit then adds purl strings as external references[1] to both SPDX tag value and SPDX json reports. [1]https://spdx.github.io/spdx-spec/v2.3/package-information/#721-external-reference-field Resolves #1206 Signed-off-by: Rose Judge <[email protected]> Signed-off-by: Ivana Atanasova <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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