-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruff format content files (3) #38974
Conversation
Your contributed Armorblox pack has been modified on files:Packs/Armorblox/Integrations/Armorblox/Armorblox_test.py |
get_mock = requests_mock.get(MANAGED_IDENTITIES_TOKEN_URL, json=mock_token) | ||
requests_mock.get(re.compile('blob.core.windows.net/.*')) | ||
requests_mock.get(re.compile("blob.core.windows.net/.*")) |
Check failure
Code scanning / CodeQL
Incomplete regular expression for hostnames High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 17 hours ago
To fix the problem, we need to escape the .
characters in the regular expression to ensure they match literal dots in the hostname. This will prevent unintended matches and ensure that only the correct hostnames are matched.
- Update the regular expression on line 602 to escape the
.
characters. - The corrected regular expression should be
blob\.core\.windows\.net/.*
.
-
Copy modified line R602
@@ -601,3 +601,3 @@ | ||
get_mock = requests_mock.get(MANAGED_IDENTITIES_TOKEN_URL, json=mock_token) | ||
requests_mock.get(re.compile("blob.core.windows.net/.*")) | ||
requests_mock.get(re.compile(r"blob\.core\.windows\.net/.*")) | ||
|
The following errors were thrown as a part of this pr: ST111, DO106, RM110, DS104. |
Metadata and documentation improvements.