fix(report): don't produce trailing comma in gitlab.tpl links array (#10728)

This commit is contained in:
Nikita Pivkin authored and GitHub committed 2026-05-27 05:00:33 +00:00
1 parent ac2f3d7977
commit 69e78e2159
3 files changed
+365 -189

No files matched your search

+7 -10
View File
@@ -88,20 +88,17 @@
}
],
"links": [
{{- $l_first := true -}}
{{- $links := list -}}
{{- range .References -}}
{{- if $l_first -}}
{{- $l_first = false }}
{{- else -}}
,
{{- if . | regexMatch "^(https?|ftp)://.+" -}}
{{- $links = append $links . -}}
{{- end -}}
{{- end -}}
{{- if . | regexMatch "^(https?|ftp)://.+" -}}
{{- range $i, $url := $links }}
{{- if $i }},{{ end }}
{
"url": "{{ . }}"
"url": "{{ $url }}"
}
{{- else -}}
{{- $l_first = true }}
{{- end -}}
{{- end }}
]
}
+200 -100
View File
@@ -48,45 +48,65 @@
"url": "https://avd.aquasec.com/nvd/cve-2019-1549"
}
],
"links": [{
"links": [
{
"url": "https://access.redhat.com/security/cve/CVE-2019-1549"
},{
},
{
"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-1549"
},{
},
{
"url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=1b0fe00e2704b5e20334a16d3c9099d1ba2ef1be"
},{
},
{
"url": "https://linux.oracle.com/cve/CVE-2019-1549.html"
},{
},
{
"url": "https://linux.oracle.com/errata/ELSA-2020-1840.html"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GY6SNRJP2S7Y42GIIDO3HXPNMDYN2U3A/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZN4VVQJ3JDCHGIHV4Y2YTXBYQZ6PWQ7E/"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/Oct/1"
},{
},
{
"url": "https://security.netapp.com/advisory/ntap-20190919-0002/"
},{
},
{
"url": "https://support.f5.com/csp/article/K44070243"
},{
},
{
"url": "https://support.f5.com/csp/article/K44070243?utm_source=f5support&utm_medium=RSS"
},{
},
{
"url": "https://ubuntu.com/security/notices/USN-4376-1"
},{
},
{
"url": "https://usn.ubuntu.com/4376-1/"
},{
},
{
"url": "https://www.debian.org/security/2019/dsa-4539"
},{
},
{
"url": "https://www.openssl.org/news/secadv/20190910.txt"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuapr2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujan2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuoct2020.html"
},{
},
{
"url": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
}
]
@@ -115,65 +135,95 @@
"url": "https://avd.aquasec.com/nvd/cve-2019-1551"
}
],
"links": [{
"links": [
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00030.html"
},{
},
{
"url": "http://packetstormsecurity.com/files/155754/Slackware-Security-Advisory-openssl-Updates.html"
},{
},
{
"url": "https://access.redhat.com/security/cve/CVE-2019-1551"
},{
},
{
"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-1551"
},{
},
{
"url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=419102400a2811582a7a3d4a4e317d72e5ce0a8f"
},{
},
{
"url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=f1c5eea8a817075d31e43f5876993c6710238c98"
},{
},
{
"url": "https://github.com/openssl/openssl/pull/10575"
},{
},
{
"url": "https://linux.oracle.com/cve/CVE-2019-1551.html"
},{
},
{
"url": "https://linux.oracle.com/errata/ELSA-2020-4514.html"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DDHOAATPWJCXRNFMJ2SASDBBNU5RJONY/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EXDDAOWSAIEFQNBHWYE6PPYFV4QXGMCD/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XVEP3LAK4JSPRXFO4QF4GG2IVXADV3SO/"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/Dec/39"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/Dec/46"
},{
},
{
"url": "https://security.gentoo.org/glsa/202004-10"
},{
},
{
"url": "https://security.netapp.com/advisory/ntap-20191210-0001/"
},{
},
{
"url": "https://ubuntu.com/security/notices/USN-4376-1"
},{
},
{
"url": "https://ubuntu.com/security/notices/USN-4504-1"
},{
},
{
"url": "https://usn.ubuntu.com/4376-1/"
},{
},
{
"url": "https://usn.ubuntu.com/4504-1/"
},{
},
{
"url": "https://www.debian.org/security/2019/dsa-4594"
},{
},
{
"url": "https://www.debian.org/security/2021/dsa-4855"
},{
},
{
"url": "https://www.openssl.org/news/secadv/20191206.txt"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuApr2021.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujan2021.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2020.html"
},{
},
{
"url": "https://www.tenable.com/security/tns-2019-09"
},{
},
{
"url": "https://www.tenable.com/security/tns-2020-03"
},{
},
{
"url": "https://www.tenable.com/security/tns-2020-11"
},{
},
{
"url": "https://www.tenable.com/security/tns-2021-10"
}
]
@@ -202,45 +252,65 @@
"url": "https://avd.aquasec.com/nvd/cve-2019-1549"
}
],
"links": [{
"links": [
{
"url": "https://access.redhat.com/security/cve/CVE-2019-1549"
},{
},
{
"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-1549"
},{
},
{
"url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=1b0fe00e2704b5e20334a16d3c9099d1ba2ef1be"
},{
},
{
"url": "https://linux.oracle.com/cve/CVE-2019-1549.html"
},{
},
{
"url": "https://linux.oracle.com/errata/ELSA-2020-1840.html"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GY6SNRJP2S7Y42GIIDO3HXPNMDYN2U3A/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZN4VVQJ3JDCHGIHV4Y2YTXBYQZ6PWQ7E/"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/Oct/1"
},{
},
{
"url": "https://security.netapp.com/advisory/ntap-20190919-0002/"
},{
},
{
"url": "https://support.f5.com/csp/article/K44070243"
},{
},
{
"url": "https://support.f5.com/csp/article/K44070243?utm_source=f5support&utm_medium=RSS"
},{
},
{
"url": "https://ubuntu.com/security/notices/USN-4376-1"
},{
},
{
"url": "https://usn.ubuntu.com/4376-1/"
},{
},
{
"url": "https://www.debian.org/security/2019/dsa-4539"
},{
},
{
"url": "https://www.openssl.org/news/secadv/20190910.txt"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuapr2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujan2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuoct2020.html"
},{
},
{
"url": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
}
]
@@ -269,65 +339,95 @@
"url": "https://avd.aquasec.com/nvd/cve-2019-1551"
}
],
"links": [{
"links": [
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00030.html"
},{
},
{
"url": "http://packetstormsecurity.com/files/155754/Slackware-Security-Advisory-openssl-Updates.html"
},{
},
{
"url": "https://access.redhat.com/security/cve/CVE-2019-1551"
},{
},
{
"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-1551"
},{
},
{
"url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=419102400a2811582a7a3d4a4e317d72e5ce0a8f"
},{
},
{
"url": "https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=f1c5eea8a817075d31e43f5876993c6710238c98"
},{
},
{
"url": "https://github.com/openssl/openssl/pull/10575"
},{
},
{
"url": "https://linux.oracle.com/cve/CVE-2019-1551.html"
},{
},
{
"url": "https://linux.oracle.com/errata/ELSA-2020-4514.html"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DDHOAATPWJCXRNFMJ2SASDBBNU5RJONY/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EXDDAOWSAIEFQNBHWYE6PPYFV4QXGMCD/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XVEP3LAK4JSPRXFO4QF4GG2IVXADV3SO/"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/Dec/39"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/Dec/46"
},{
},
{
"url": "https://security.gentoo.org/glsa/202004-10"
},{
},
{
"url": "https://security.netapp.com/advisory/ntap-20191210-0001/"
},{
},
{
"url": "https://ubuntu.com/security/notices/USN-4376-1"
},{
},
{
"url": "https://ubuntu.com/security/notices/USN-4504-1"
},{
},
{
"url": "https://usn.ubuntu.com/4376-1/"
},{
},
{
"url": "https://usn.ubuntu.com/4504-1/"
},{
},
{
"url": "https://www.debian.org/security/2019/dsa-4594"
},{
},
{
"url": "https://www.debian.org/security/2021/dsa-4855"
},{
},
{
"url": "https://www.openssl.org/news/secadv/20191206.txt"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuApr2021.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujan2021.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2020.html"
},{
},
{
"url": "https://www.tenable.com/security/tns-2019-09"
},{
},
{
"url": "https://www.tenable.com/security/tns-2020-03"
},{
},
{
"url": "https://www.tenable.com/security/tns-2020-11"
},{
},
{
"url": "https://www.tenable.com/security/tns-2021-10"
}
]
+158 -79
View File
@@ -48,163 +48,242 @@
"url": "https://avd.aquasec.com/nvd/cve-2019-11358"
}
],
"links": [{
"links": [
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html"
},{
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html"
},{
},
{
"url": "http://packetstormsecurity.com/files/152787/dotCMS-5.1.1-Vulnerable-Dependencies.html"
},{
},
{
"url": "http://packetstormsecurity.com/files/153237/RetireJS-CORS-Issue-Script-Execution.html"
},{
},
{
"url": "http://packetstormsecurity.com/files/156743/OctoberCMS-Insecure-Dependencies.html"
},{
},
{
"url": "http://seclists.org/fulldisclosure/2019/May/10"
},{
},
{
"url": "http://seclists.org/fulldisclosure/2019/May/11"
},{
},
{
"url": "http://seclists.org/fulldisclosure/2019/May/13"
},{
},
{
"url": "http://www.openwall.com/lists/oss-security/2019/06/03/2"
},{
},
{
"url": "http://www.securityfocus.com/bid/108023"
},{
},
{
"url": "https://access.redhat.com/errata/RHBA-2019:1570"
},{
},
{
"url": "https://access.redhat.com/errata/RHSA-2019:1456"
},{
},
{
"url": "https://access.redhat.com/errata/RHSA-2019:2587"
},{
},
{
"url": "https://access.redhat.com/errata/RHSA-2019:3023"
},{
},
{
"url": "https://access.redhat.com/errata/RHSA-2019:3024"
},{
},
{
"url": "https://access.redhat.com/security/cve/CVE-2019-11358"
},{
},
{
"url": "https://backdropcms.org/security/backdrop-sa-core-2019-009"
},{
},
{
"url": "https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/"
},{
},
{
"url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-11358"
},{
},
{
"url": "https://github.com/DanielRuf/snyk-js-jquery-174006?files=1"
},{
},
{
"url": "https://github.com/advisories/GHSA-6c3j-c64m-qhgq"
},{
},
{
"url": "https://github.com/jquery/jquery/commit/753d591aea698e57d6db58c9f722cd0808619b1b"
},{
},
{
"url": "https://github.com/jquery/jquery/pull/4333"
},{
},
{
"url": "https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md#434"
},{
},
{
"url": "https://hackerone.com/reports/454365"
},{
},
{
"url": "https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44601"
},{
},
{
"url": "https://linux.oracle.com/cve/CVE-2019-11358.html"
},{
},
{
"url": "https://linux.oracle.com/errata/ELSA-2020-4847.html"
},{
},
{
"url": "https://lists.apache.org/thread.html/08720ef215ee7ab3386c05a1a90a7d1c852bf0706f176a7816bf65fc@%3Ccommits.airflow.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/5928aa293e39d248266472210c50f176cac1535220f2486e6a7fa844@%3Ccommits.airflow.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/6097cdbd6f0a337bedd9bb5cc441b2d525ff002a96531de367e4259f@%3Ccommits.airflow.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/88fb0362fd40e5b605ea8149f63241537b8b6fb5bfa315391fc5cbb7@%3Ccommits.airflow.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/b736d0784cf02f5a30fbb4c5902762a15ad6d47e17e2c5a17b7d6205@%3Ccommits.airflow.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/ba79cf1658741e9f146e4c59b50aee56656ea95d841d358d006c18b6@%3Ccommits.roller.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/bcce5a9c532b386c68dab2f6b3ce8b0cc9b950ec551766e76391caa3@%3Ccommits.nifi.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/r2041a75d3fc09dec55adfd95d598b38d22715303f65c997c054844c9@%3Cissues.flink.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/r2baacab6e0acb5a2092eb46ae04fd6c3e8277b4fd79b1ffb7f3254fa@%3Cissues.flink.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/r38f0d1aa3c923c22977fe7376508f030f22e22c1379fbb155bf29766@%3Cdev.syncope.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/r41b5bfe009c845f67d4f68948cc9419ac2d62e287804aafd72892b08@%3Cissues.flink.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/r7aac081cbddb6baa24b75e74abf0929bf309b176755a53e3ed810355@%3Cdev.flink.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/r7d64895cc4dff84d0becfc572b20c0e4bf9bfa7b10c6f5f73e783734@%3Cdev.storm.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/r7e8ebccb7c022e41295f6fdb7b971209b83702339f872ddd8cf8bf73@%3Cissues.flink.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/rac25da84ecdcd36f6de5ad0d255f4e967209bbbebddb285e231da37d@%3Cissues.flink.apache.org%3E"
},{
},
{
"url": "https://lists.apache.org/thread.html/rca37935d661f4689cb4119f1b3b224413b22be161b678e6e6ce0c69b@%3Ccommits.nifi.apache.org%3E"
},{
},
{
"url": "https://lists.debian.org/debian-lts-announce/2019/05/msg00006.html"
},{
},
{
"url": "https://lists.debian.org/debian-lts-announce/2019/05/msg00029.html"
},{
},
{
"url": "https://lists.debian.org/debian-lts-announce/2020/02/msg00024.html"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4UOAZIFCSZ3ENEFOR5IXX6NFAD3HV7FA/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5IABSKTYZ5JUGL735UKGXL5YPRYOPUYI/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KYH3OAGR2RTCHRA5NOKX2TES7SNQMWGO/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QV3PKZC3PQCO3273HAT76PAQZFBEO4KP/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RLXRX23725JL366CNZGJZ7AQQB7LHQ6F/"
},{
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WZW27UCJ5CYFL4KFFFMYMIBNMIU2ALG5/"
},{
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-11358"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/Apr/32"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/Jun/12"
},{
},
{
"url": "https://seclists.org/bugtraq/2019/May/18"
},{
},
{
"url": "https://security.netapp.com/advisory/ntap-20190919-0001/"
},{
},
{
"url": "https://snyk.io/vuln/SNYK-JS-JQUERY-174006"
},{
},
{
"url": "https://www.debian.org/security/2019/dsa-4434"
},{
},
{
"url": "https://www.debian.org/security/2019/dsa-4460"
},{
},
{
"url": "https://www.drupal.org/sa-core-2019-006"
},{
},
{
"url": "https://www.oracle.com//security-alerts/cpujul2021.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuApr2021.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuapr2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujan2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujan2021.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpujul2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuoct2020.html"
},{
},
{
"url": "https://www.oracle.com/security-alerts/cpuoct2021.html"
},{
},
{
"url": "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html"
},{
},
{
"url": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
},{
},
{
"url": "https://www.privacy-wise.com/mitigating-cve-2019-11358-in-old-versions-of-jquery/"
},{
},
{
"url": "https://www.synology.com/security/advisory/Synology_SA_19_19"
},{
},
{
"url": "https://www.tenable.com/security/tns-2019-08"
},{
},
{
"url": "https://www.tenable.com/security/tns-2020-02"
}
]