Skip to content

Commit

Permalink
feat(report): update gitlab template with default operating_system value
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongoldenthal committed Oct 14, 2024
1 parent fb88ee8 commit a35ddbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/gitlab.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
{{- range . }}
{{- $target := .Target }}
{{- $image := $target | regexFind "[^\\s]+" }}
{{- $os := regexReplaceAll ".+\\((.+)\\)" $target "${1}" }}
{{- $os := "Unknown" }}
{{- if contains "(" $target -}}
{{- $os = regexReplaceAll ".+\\((.+)\\)" $target "${1}" }}
{{- end }}
{{- range .Vulnerabilities -}}
{{- if $t_first -}}
{{- $t_first = false -}}
Expand Down

0 comments on commit a35ddbc

Please sign in to comment.