Skip to content

Commit

Permalink
🐛 Collect package format for the vuln report (#1146)
Browse files Browse the repository at this point in the history
This is needed to match the correct versions when an advisory contains the multiple formats

Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker authored Mar 7, 2024
1 parent f83f82a commit 0001592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/vuln.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var vulnCmdRun = func(cmd *cobra.Command, runtime *providers.Runtime, cliRes *pl
log.Error().Err(err).Msg("failed to initialize cnspec shell")
}

packagesQuery := "packages{ name version origin }"
packagesQuery := "packages { name version origin format }"
packagesDatapointChecksum := executor.MustGetOneDatapoint(executor.MustCompile(packagesQuery))
codeBundle, results, err := sh.RunOnce(packagesQuery)
if err != nil {
Expand Down

0 comments on commit 0001592

Please sign in to comment.