Skip to content

Commit

Permalink
remove other relationship from syft generated rpm sboms
Browse files Browse the repository at this point in the history
  • Loading branch information
jasinner committed Oct 9, 2024
1 parent 97c6339 commit 153cb16
Show file tree
Hide file tree
Showing 3 changed files with 3,315 additions and 15,079 deletions.
10 changes: 9 additions & 1 deletion sbom/examples/rpm/build/from-koji.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,15 @@ def run_syft(builddir):
relationship["spdxElementId"] = "SPDXRef-Source0" # pick first one
relationship["relationshipType"] = "CONTAINS"

relationships.extend(syft_rels)
filtered_rels = []
for relationship in syft_rels:
if not (
relationship["relationshipType"] == "OTHER"
and relationship["comment"].startswith("evident-by:")
):
filtered_rels.append(relationship)

relationships.extend(filtered_rels)


def mock_openssl_midstream(sfn, source, sname, sver):
Expand Down
Loading

0 comments on commit 153cb16

Please sign in to comment.