Skip to content

Commit e24294e

Browse files
committed
fix codesql
1 parent b94dbc0 commit e24294e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/testing_recorder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ func cassetteRequestFilter(i *cassette.Interaction) error {
1919
delete(i.Request.Headers, "x-auth-token")
2020
delete(i.Request.Headers, "X-Auth-Token")
2121

22-
orgIDRegex := regexp.MustCompile("organization_id=[0-9a-f-]{36}")
23-
tokenRegex := regexp.MustCompile(`api\.scaleway\.com/account/v1/tokens/[0-9a-f-]{36}`)
24-
apiKeyRegex := regexp.MustCompile(`^api\.scaleway\.com/iam/v1alpha1/api-keys/SCW[0-9A-Z]{17}`)
22+
orgIDRegex := regexp.MustCompile(`^organization_id=[0-9a-f-]{36}$`)
23+
tokenRegex := regexp.MustCompile(`^https://api\.scaleway\.com/account/v1/tokens/[0-9a-f-]{36}$`)
24+
apiKeyRegex := regexp.MustCompile(`^https://api\.scaleway\.com/iam/v1alpha1/api-keys/SCW[0-9A-Z]{17}$`)
2525

2626
i.URL = orgIDRegex.ReplaceAllString(
2727
i.URL,

0 commit comments

Comments
 (0)