Skip to content

Commit

Permalink
Merge pull request #86 from LaurentGoderre/sbom-supplier
Browse files Browse the repository at this point in the history
Add support for package supplier in SBOM
  • Loading branch information
tianon authored Dec 8, 2023
2 parents 36b3473 + 5a86c34 commit 4e0ea8d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/template-helper-functions.jq
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ def sbom:
referenceLocator: ("pkg:generic/" + .name + "@" + .version + "?" + (.params | [to_entries[] | .key + "=" + .value] | join("\u0026")))
}
],
licenseDeclared: (if .licenses | length > 0 then
(.licenses | join(" AND "))
else
"NOASSERTION"
end)
}
+ if .licenses then { licenseDeclared: (.licenses | join(" AND ")) } else {} end
+ if .supplier then { supplier: .supplier } else {} end
]
}
;

0 comments on commit 4e0ea8d

Please sign in to comment.