Add support for wolfi purl type
Proposal
Support for Operating System purl types was added as part of Add purl types for Container Scanning OS packag... (#398810 - closed), however, we missed adding a purl type for wolfi
. The purpose of this issue is to add this.
Implementation Plan
-
Add wolfi
to Enums::Sbom::PURL_TYPES:diff --git a/app/models/concerns/enums/sbom.rb b/app/models/concerns/enums/sbom.rb index 59aafc32d945..64e0a7653d6b 100644 --- a/app/models/concerns/enums/sbom.rb +++ b/app/models/concerns/enums/sbom.rb @@ -18,7 +18,8 @@ class Sbom apk: 9, rpm: 10, deb: 11, - cbl_mariner: 12 + cbl_mariner: 12, + wolfi: 13 }.with_indifferent_access.freeze def self.component_types
-
Update the unit tests: diff --git a/spec/models/concerns/enums/sbom_spec.rb b/spec/models/concerns/enums/sbom_spec.rb index 41670880630f..4cfd50b6c8a6 100644 --- a/spec/models/concerns/enums/sbom_spec.rb +++ b/spec/models/concerns/enums/sbom_spec.rb @@ -23,6 +23,7 @@ :rpm | 10 :deb | 11 :cbl_mariner | 12 + :wolfi | 13 'unknown-pkg-manager' | 0 'Python (unknown)' | 0 end
Edited by Adam Cohen