Skip to content

bug(report): contrib/gitlab.tpl produces invalid JSON when last reference URL(s) fail URL regex #10727

Description

@nikpivkin

contrib/gitlab.tpl produces invalid JSON when a vulnerability's last reference URL(s) don't match ^(https?|ftp)://.+ (e.g. not-applicable:http://...). A trailing comma is left before the closing ] of the links array, causing JSON parsers to reject the report.

Discussed in #10696

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions