Skip to content

Commit

Permalink
Merge pull request #284 from viveksahu26/issue_264_cdx
Browse files Browse the repository at this point in the history
update sbom_with_creator_and_version rule for cdx version >= 1.5
  • Loading branch information
riteshnoronha authored Jul 9, 2024
2 parents fbd4856 + 0b3ccca commit 20f0b3c
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 20f0b3c

Please sign in to comment.