Skip to content

Commit

Permalink
Add spdx relationship encoding for dependencies (anchore#1342)
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Zantow <[email protected]>
  • Loading branch information
wagoodman and kzantow authored Nov 18, 2022
1 parent bd66ae2 commit a09f2d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syft/formats/common/spdxhelpers/to_format_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ func lookupRelationship(ty artifact.RelationshipType) (bool, RelationshipType, s
switch ty {
case artifact.ContainsRelationship:
return true, ContainsRelationship, ""
case artifact.DependencyOfRelationship:
return true, DependencyOfRelationship, ""
case artifact.OwnershipByFileOverlapRelationship:
return true, OtherRelationship, fmt.Sprintf("%s: indicates that the parent package claims ownership of a child package since the parent metadata indicates overlap with a location that a cataloger found the child package by", ty)
}
Expand Down

0 comments on commit a09f2d1

Please sign in to comment.