Skip to content

Commit 7b166f2

Browse files
Potential fix for code scanning alert no. 5: Incomplete regular expression for hostnames (#417)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent c03cedb commit 7b166f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/release/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919

2020
var token = os.Getenv("GITHUB_TOKEN")
2121
var versionRegexp = regexp.MustCompile(`^\d+\.\d+\.\d+$`)
22-
var goModRequireSDKRegexp = regexp.MustCompile(`github.com/terraform-linters/tflint-plugin-sdk v(.+)`)
22+
var goModRequireSDKRegexp = regexp.MustCompile(`github\.com/terraform-linters/tflint-plugin-sdk v(.+)`)
2323

2424
func main() {
2525
if err := os.Chdir("../../"); err != nil {

0 commit comments

Comments
 (0)