Skip to content

Commit

Permalink
feat(report): update gitlab template to avoid using regex
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongoldenthal committed Oct 18, 2024
1 parent a35ddbc commit 2536016
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/gitlab.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
{{- range . }}
{{- $target := .Target }}
{{- $image := $target | regexFind "[^\\s]+" }}
{{- $os := "Unknown" }}
{{- if contains "(" $target -}}
{{- $os = regexReplaceAll ".+\\((.+)\\)" $target "${1}" }}
{{- $os := $target | splitList "(" | last | trimSuffix ")" }}
{{- if eq $os $target -}}
{{- $os = "Unknown" -}}
{{- end }}
{{- range .Vulnerabilities -}}
{{- if $t_first -}}
Expand Down

0 comments on commit 2536016

Please sign in to comment.