Skip to content

Commit c766101

Browse files
committed
Update feed URL
1 parent eb5a7e6 commit c766101

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/threatintel/utils.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ func SecretRulesURL(version string) string {
3232

3333
// VulnerabilityRulesURL returns the URL for downloading vulnerability db for the given version
3434
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+
}
3539
return fmt.Sprintf("https://threat-intel.threatmapper.org/threat-intel/vulnerability/v6/vulnerability_%s.tar.gz", version)
3640
}
3741

0 commit comments

Comments
 (0)