Skip to content

Commit

Permalink
Fix arguments passed to vulncheck template. (#4560)
Browse files Browse the repository at this point in the history
Templated used to produce details for `vulncheck` engine was expecting
a list of string under `"packages"` key.
  • Loading branch information
blkt authored Sep 20, 2024
1 parent 30c7d19 commit 214407a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/engine/eval/vulncheck/vulncheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (e *Evaluator) Eval(ctx context.Context, pol map[string]any, res *engif.Res
if len(vulnerablePackages) > 0 {
return evalerrors.NewDetailedErrEvaluationFailed(
templates.VulncheckTemplate,
vulnerablePackages,
map[string]any{"packages": vulnerablePackages},
"vulnerable packages: %s",
strings.Join(vulnerablePackages, ","),
)
Expand Down

0 comments on commit 214407a

Please sign in to comment.