Skip to content

Commit

Permalink
add service section inside tools
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Kumar Sahu <[email protected]>
  • Loading branch information
viveksahu26 committed Jul 9, 2024
1 parent fbd4856 commit 0b3ccca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/sbom/cdx.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,13 @@ func (c *cdxDoc) parseTool() {
t.Version = ct.Version
c.tools = append(c.tools, t)
}

for _, ct := range lo.FromPtr(c.doc.Metadata.Tools.Services) {
t := Tool{}
t.Name = ct.Name
t.Version = ct.Version
c.tools = append(c.tools, t)
}
}

func (c *cdxDoc) parseAuthors() {
Expand Down

0 comments on commit 0b3ccca

Please sign in to comment.