We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb5a7e6 commit c766101Copy full SHA for c766101
pkg/threatintel/utils.go
@@ -32,6 +32,10 @@ func SecretRulesURL(version string) string {
32
33
// VulnerabilityRulesURL returns the URL for downloading vulnerability db for the given version
34
func VulnerabilityRulesURL(version string) string {
35
+ // Ensure version has 'v' prefix to match S3 key naming convention
36
+ if !strings.HasPrefix(version, "v") {
37
+ version = "v" + version
38
+ }
39
return fmt.Sprintf("https://threat-intel.threatmapper.org/threat-intel/vulnerability/v6/vulnerability_%s.tar.gz", version)
40
}
41
0 commit comments