Skip to content

Commit 29ba642

Browse files
fix: incomplete regular expression for hostnames (#263)
CodeQL detected where we'd missed escaping a `.`, which means we match any character instead of a literal `.`, as was the intention. Copilot Autofix fixed it! Closes: #170 Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 955fd64 commit 29ba642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/handlers/launch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
)
2929

3030
// https://regex101.com/r/OZwd8Y/1
31-
var outputRegex = regexp.MustCompile(`output: cloud \((?P<url>https:\/\/((app\.k6\.io)|([^/]+\.grafana.net\/a\/k6-app))\/runs\/\d+)\)`)
31+
var outputRegex = regexp.MustCompile(`output: cloud \((?P<url>https:\/\/((app\.k6\.io)|([^/]+\.grafana\.net\/a\/k6-app))\/runs\/\d+)\)`)
3232

3333
type launchPayload struct {
3434
flaggerWebhook

0 commit comments

Comments
 (0)