Skip to content

Commit

Permalink
Remove backticks in vulncheck details template.
Browse files Browse the repository at this point in the history
It currently looks weird in the UI, we'll get rid of them for now.
  • Loading branch information
blkt committed Sep 20, 2024
1 parent 4ba7558 commit 82f1b05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/engine/eval/templates/vulncheckTemplate.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Vulnerable packages found:
{{- range .packages }}
* `{{- . -}}`
* {{ . }}
{{- end }}
2 changes: 1 addition & 1 deletion internal/engine/eval/vulncheck/vulncheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestEvaluationDetailRendering(t *testing.T) {
tmpl: templates.VulncheckTemplate,
args: map[string]any{"packages": []string{"boto3", "urllib3", "python-oauth2"}},
error: "evaluation failure: this is the message",
details: "Vulnerable packages found:\n* `boto3`\n* `urllib3`\n* `python-oauth2`\n",
details: "Vulnerable packages found:\n* boto3\n* urllib3\n* python-oauth2\n",
},
}

Expand Down

0 comments on commit 82f1b05

Please sign in to comment.