Skip to content

Commit 5fe95ea

Browse files
authored
Suppress codeql (#41677)
1 parent 4ddc44c commit 5fe95ea

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/xml_route.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,9 @@ def basic():
4444
assert_with_message("date attribute", "Date of publication", attributes["date"])
4545
assert_with_message("author attribute", "Yours Truly", attributes["author"])
4646
return Response(status=200)
47-
return Response("You have passed in method '{}' that is not 'GET' or 'PUT'".format(request.method), status=400)
47+
return Response(
48+
"You have passed in method '{}' that is not 'GET' or 'PUT'".format(
49+
request.method # CodeQL [SM01307] test code
50+
),
51+
status=400,
52+
)

sdk/identity/azure-identity/azure/identity/_internal/aadclient_certificate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def sign_rs256(self, plaintext: bytes) -> bytes:
5353
:return: The signature.
5454
:rtype: bytes
5555
"""
56-
return self._private_key.sign(plaintext, padding.PKCS1v15(), hashes.SHA256())
56+
return self._private_key.sign(
57+
plaintext, padding.PKCS1v15(), hashes.SHA256() # CodeQL [SM04457] need this for backwards compatibility
58+
)
5759

5860
def sign_ps256(self, plaintext: bytes) -> bytes:
5961
"""Sign bytes using PS256.

0 commit comments

Comments
 (0)