-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: juan131 <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,9 +82,15 @@ type Package struct { | |
|
||
Modularitylabel string `json:",omitempty"` // only for Red Hat based distributions | ||
BuildInfo *BuildInfo `json:",omitempty"` // only for Red Hat | ||
|
||
Ref string `json:",omitempty"` // identifier which can be used to reference the component elsewhere | ||
Indirect bool `json:",omitempty"` // this package is direct dependency of the project or not | ||
Indirect bool `json:",omitempty"` // this package is direct dependency of the project or not | ||
|
||
// TO BE DEPRECATED - use Identifier instead | ||
// Only used when scanning SBOM and contains the reference ID used in it. | ||
// It could be PURL, UUID, etc. | ||
// e.g. | ||
// - pkg:npm/acme/[email protected] | ||
// - b2a46a4b-8367-4bae-9820-95557cfe03a8 | ||
Ref string `json:",omitempty"` | ||
|
||
// Dependencies of this package | ||
// Note: it may have interdependencies, which may lead to infinite loops. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,12 @@ type DetectedVulnerability struct { | |
SeveritySource types.SourceID `json:",omitempty"` | ||
PrimaryURL string `json:",omitempty"` | ||
|
||
// PkgRef is populated only when scanning SBOM and contains the reference ID used in the SBOM. | ||
// TO BE DEPRECATED - use PkgIdentifier instead | ||
// Only used when scanning SBOM and contains the reference ID used in it. | ||
// It could be PURL, UUID, etc. | ||
// e.g. | ||
// - pkg:npm/acme/[email protected] | ||
// - b2a46a4b-8367-4bae-9820-95557cfe03a8 | ||
// To be deprecated now we have PkgIdentifier | ||
PkgRef string `json:",omitempty"` | ||
|
||
// DataSource holds where the advisory comes from | ||
|