Skip to content

Commit

Permalink
First cut for automatic annotations and tagging
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Nov 11, 2024
1 parent 3460daf commit 16a4907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stages/postgen/postgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export function annotate(bomJson, _options) {
(c) => c.name === "cdxgen",
);
const metadataAnnotations = textualMetadata(bomJson);
if (metadataAnnotations) {
if (metadataAnnotations && bomJson.metadata?.component?.["bom-ref"]) {
bomAnnotations.push({
"bom-ref": "metadata-annotations",
subjects: [bomJson.metadata.component["bom-ref"]],
Expand Down

0 comments on commit 16a4907

Please sign in to comment.