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.
dev
David Fisher 2024-04-03 07:49:27 -04:00 committed by GitHub
parent 3907e20bde
commit 143f179e7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ func (exporter *Exporter) addToolDetails() {
FullDescription: &sarif.MultiformatMessageString{ FullDescription: &sarif.MultiformatMessageString{
Text: "Fast and customizable vulnerability scanner based on simple YAML based DSL", Text: "Fast and customizable vulnerability scanner based on simple YAML based DSL",
}, },
FullName: "Nuclei v" + config.Version, FullName: "Nuclei " + config.Version,
SemanticVersion: "v" + config.Version, SemanticVersion: config.Version,
DownloadURI: "https://github.com/projectdiscovery/nuclei/releases", DownloadURI: "https://github.com/projectdiscovery/nuclei/releases",
Rules: exporter.rules, Rules: exporter.rules,
} }