From 143f179e7ba8acd6be97eb24c2a1292f042fae3a Mon Sep 17 00:00:00 2001 From: David Fisher <82880+tibbon@users.noreply.github.com> Date: Wed, 3 Apr 2024 07:49:27 -0400 Subject: [PATCH] Remove prefix v from Sarif exporters (#4976) because: In config.Version there is already a `v`` prefix, such as `v3.2.2``. Prior to this commit the versions were being tagged as `vv3.2.2` this commit: Removes the 'v' prefix from the Sarif exporter in the ToolDetails for both FullName and SemanticVersion. --- pkg/reporting/exporters/sarif/sarif.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/reporting/exporters/sarif/sarif.go b/pkg/reporting/exporters/sarif/sarif.go index d2fe63bd4..67a438d80 100644 --- a/pkg/reporting/exporters/sarif/sarif.go +++ b/pkg/reporting/exporters/sarif/sarif.go @@ -53,8 +53,8 @@ func (exporter *Exporter) addToolDetails() { FullDescription: &sarif.MultiformatMessageString{ Text: "Fast and customizable vulnerability scanner based on simple YAML based DSL", }, - FullName: "Nuclei v" + config.Version, - SemanticVersion: "v" + config.Version, + FullName: "Nuclei " + config.Version, + SemanticVersion: config.Version, DownloadURI: "https://github.com/projectdiscovery/nuclei/releases", Rules: exporter.rules, }