Skip to content

Commit

Permalink
fix: handle breaking change in metadata.tools
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <nscuro@protonmail.com>
  • Loading branch information
nscuro committed Apr 6, 2024
1 parent 2eaa786 commit 5b5153e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/cli/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ func AddCommonMetadata(logger zerolog.Logger, bom *cdx.BOM) error {
}

bom.Metadata.Timestamp = time.Now().Format(time.RFC3339)
bom.Metadata.Tools = &[]cdx.Tool{*tool}
bom.Metadata.Tools = &cdx.ToolsChoice{
Tools: &[]cdx.Tool{*tool},
}

return nil
}
Expand Down

0 comments on commit 5b5153e

Please sign in to comment.