Skip to content

Commit a3d6a5f

Browse files
authored
{LTS} Backport #30993 (#31367)
1 parent bcb4166 commit a3d6a5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/azure-cli-core/azure/cli/core/tests/test_credential_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TestCredentialHelper(unittest.TestCase):
1212
def _get_test_secret_masker(self):
1313
from microsoft_security_utilities_secret_masker import SecretMasker, load_regex_pattern_from_json
1414
email_address_json = {
15-
"Pattern": r"(?<refine>[\w.%#+-]+)(%40|@)([a-z0-9.-]*.[a-z]{2,})",
15+
"Pattern": r"(?P<refine>[\w.%#+-]+)(%40|@)([a-z0-9.-]*.[a-z]{2,})",
1616
"Id": "001",
1717
"Name": "EmailAddress",
1818
"Signatures": [
@@ -22,7 +22,7 @@ def _get_test_secret_masker(self):
2222
"DetectionMetadata": "HighConfidence"
2323
}
2424
guid_json = {
25-
"Pattern": r"(?<refine>[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12})",
25+
"Pattern": r"(?P<refine>[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12})",
2626
"Id": "002",
2727
"Name": "GUID",
2828
"DetectionMetadata": "LowConfidence"

src/azure-cli-core/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
'humanfriendly~=10.0',
5454
'jmespath',
5555
'knack~=0.11.0',
56+
'microsoft-security-utilities-secret-masker~=1.0.0b4',
5657
'msal-extensions==1.2.0',
5758
'msal[broker]==1.31.0',
5859
'msrestazure~=0.6.4',
@@ -63,7 +64,6 @@
6364
'PyJWT>=2.1.0',
6465
'pyopenssl>=17.1.0', # https://github.com/pyca/pyopenssl/pull/612
6566
'requests[socks]',
66-
'microsoft-security-utilities-secret-masker~=1.0.0b2',
6767
]
6868

6969
with open('README.rst', 'r', encoding='utf-8') as f:

0 commit comments

Comments
 (0)