Skip to content

Commit edae2e5

Browse files
Potential fix for code scanning alert no. 8: Clear-text logging of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 5cd195f commit edae2e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fitbit_client/resources/_base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# fitbit_client/resources/_base.py
22

3+
34
# Standard library imports
45
from datetime import datetime
56
from inspect import currentframe
@@ -14,6 +15,7 @@
1415

1516
# Third party imports
1617
from requests import Response
18+
import re
1719
from requests_oauthlib import OAuth2Session
1820

1921
# Local imports
@@ -516,8 +518,9 @@ def _make_request(
516518

517519
if debug:
518520
curl_command = self._build_curl_command(url, http_method, data, json, params)
521+
sanitized_curl_command = self._sanitize_curl_command(curl_command)
519522
print(f"\n# Debug curl command for {calling_method}:")
520-
print(curl_command)
523+
print(sanitized_curl_command)
521524
print()
522525
return None
523526

0 commit comments

Comments
 (0)