Skip to content

Commit

Permalink
add license information
Browse files Browse the repository at this point in the history
  • Loading branch information
vasba authored and vasba committed Jun 13, 2022
1 parent 172b627 commit e96e0dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/dependency-track.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ python do_dependencytrack_collect() {
version = d.getVar("CVE_VERSION")
sbom = read_sbom(d)

license = d.getVar("LICENSE")
# update it with the new package info
names = name.split()
for index, cpe in enumerate(oe.cve_check.get_cpe_ids(name, version)):
Expand All @@ -59,7 +60,8 @@ python do_dependencytrack_collect() {
sbom["components"].append({
"name": names[index],
"version": version,
"cpe": cpe
"cpe": cpe,
"license": license,
})

# write it back to the deploy directory
Expand Down

0 comments on commit e96e0dc

Please sign in to comment.