Skip to content

Commit 5a86c34

Browse files
Add support for package supplier in SBOM
1 parent ff6b5f2 commit 5a86c34

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/template-helper-functions.jq

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,9 @@ def sbom:
2525
referenceLocator: ("pkg:generic/" + .name + "@" + .version + "?" + (.params | [to_entries[] | .key + "=" + .value] | join("\u0026")))
2626
}
2727
],
28-
licenseDeclared: (if .licenses | length > 0 then
29-
(.licenses | join(" AND "))
30-
else
31-
"NOASSERTION"
32-
end)
3328
}
29+
+ if .licenses then { licenseDeclared: (.licenses | join(" AND ")) } else {} end
30+
+ if .supplier then { supplier: .supplier } else {} end
3431
]
3532
}
3633
;

0 commit comments

Comments
 (0)