fix(gitlab): fix json generation on loop (#409)

Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>

Co-authored-by: Teppei Fukuda <knqyf263@gmail.com>
This commit is contained in:
Takuya N
2020-02-18 21:32:56 +09:00
committed by GitHub
parent 7726963e86
commit 80bbe47774

View File

@@ -2,12 +2,12 @@
{
"version": "2.3",
"vulnerabilities": [
{{- $first := true }}
{{- $t_first := true }}
{{- range . }}
{{- $target := .Target }}
{{- range .Vulnerabilities -}}
{{- if $first -}}
{{- $first = false -}}
{{- if $t_first -}}
{{- $t_first = false -}}
{{ else -}}
,
{{- end }}
@@ -60,10 +60,10 @@
}
],
"links": [
{{- $first := true -}}
{{- $l_first := true -}}
{{- range .References -}}
{{- if $first -}}
{{- $first = false }}
{{- if $l_first -}}
{{- $l_first = false }}
{{- else -}}
,
{{- end -}}