diff --git a/Pipfile.lock b/Pipfile.lock index 84e8fe8..a6e7d18 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -122,12 +122,12 @@ }, "ghastoolkit": { "hashes": [ - "sha256:a8eeedd99997a9d737bb85b8ba897b8bf46c5f690233b1f32a89fbb3b3128449", - "sha256:e5db03d76f1c666f0a30ecf89491fa4deeaf788c6f1b448937551420fae5dc94" + "sha256:0dd2199a8809c0f7edd98b8f4dec84159dc1e77ef8ec7e11741dda7f74c9533c", + "sha256:f5e35fc8f8ee8bb60dd9ec81889a61c5b53caadf232d366c89f16baec5513c39" ], "index": "pypi", "markers": "python_version >= '3.10'", - "version": "==0.17.6" + "version": "==0.17.7" }, "idna": { "hashes": [ @@ -205,11 +205,11 @@ }, "requests": { "hashes": [ - "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", - "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6" + "sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c", + "sha256:27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422" ], "markers": "python_version >= '3.8'", - "version": "==2.32.3" + "version": "==2.32.4" }, "semantic-version": { "hashes": [ @@ -623,11 +623,11 @@ }, "requests": { "hashes": [ - "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", - "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6" + "sha256:27babd3cda2a6d50b30443204ee89830707d396671944c998b5975b031ac2b2c", + "sha256:27d0316682c8a29834d3264820024b62a36942083d52caf2f14c0591336d3422" ], "markers": "python_version >= '3.8'", - "version": "==2.32.3" + "version": "==2.32.4" }, "snowballstemmer": { "hashes": [ @@ -735,12 +735,12 @@ }, "typing-extensions": { "hashes": [ - "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", - "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef" + "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4", + "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af" ], "index": "pypi", - "markers": "python_version >= '3.8'", - "version": "==4.13.2" + "markers": "python_version >= '3.9'", + "version": "==4.14.0" }, "urllib3": { "hashes": [ diff --git a/vendor/ghastoolkit/__init__.py b/vendor/ghastoolkit/__init__.py index f71b291..0f8bff8 100644 --- a/vendor/ghastoolkit/__init__.py +++ b/vendor/ghastoolkit/__init__.py @@ -3,7 +3,7 @@ __name__ = "ghastoolkit" __title__ = "GHAS Toolkit" -__version__ = "0.17.6" +__version__ = "0.17.7" __description__ = "GitHub Advanced Security Python Toolkit" __summary__ = """\ diff --git a/vendor/requests/__version__.py b/vendor/requests/__version__.py index 2c105ac..3128a46 100644 --- a/vendor/requests/__version__.py +++ b/vendor/requests/__version__.py @@ -5,8 +5,8 @@ __title__ = "requests" __description__ = "Python HTTP for Humans." __url__ = "https://requests.readthedocs.io" -__version__ = "2.32.3" -__build__ = 0x023203 +__version__ = "2.32.4" +__build__ = 0x023204 __author__ = "Kenneth Reitz" __author_email__ = "me@kennethreitz.org" __license__ = "Apache-2.0" diff --git a/vendor/requests/compat.py b/vendor/requests/compat.py index 095de1b..7f9d754 100644 --- a/vendor/requests/compat.py +++ b/vendor/requests/compat.py @@ -10,6 +10,18 @@ import importlib import sys +# ------- +# urllib3 +# ------- +from urllib3 import __version__ as urllib3_version + +# Detect which major version of urllib3 is being used. +try: + is_urllib3_1 = int(urllib3_version.split(".")[0]) == 1 +except (TypeError, AttributeError): + # If we can't discern a version, prefer old functionality. + is_urllib3_1 = True + # ------------------- # Character Detection # ------------------- diff --git a/vendor/requests/models.py b/vendor/requests/models.py index 8f56ca7..c4b25fa 100644 --- a/vendor/requests/models.py +++ b/vendor/requests/models.py @@ -945,7 +945,9 @@ def text(self): return content def json(self, **kwargs): - r"""Returns the json-encoded content of a response, if any. + r"""Decodes the JSON response body (if any) as a Python object. + + This may return a dictionary, list, etc. depending on what is in the response. :param \*\*kwargs: Optional arguments that ``json.loads`` takes. :raises requests.exceptions.JSONDecodeError: If the response body does not diff --git a/vendor/requests/utils.py b/vendor/requests/utils.py index ae6c42f..8ab5585 100644 --- a/vendor/requests/utils.py +++ b/vendor/requests/utils.py @@ -38,6 +38,7 @@ getproxies, getproxies_environment, integer_types, + is_urllib3_1, ) from .compat import parse_http_list as _parse_list_header from .compat import ( @@ -136,7 +137,9 @@ def super_len(o): total_length = None current_position = 0 - if isinstance(o, str): + if not is_urllib3_1 and isinstance(o, str): + # urllib3 2.x+ treats all strings as utf-8 instead + # of latin-1 (iso-8859-1) like http.client. o = o.encode("utf-8") if hasattr(o, "__len__"): @@ -216,14 +219,7 @@ def get_netrc_auth(url, raise_errors=False): netrc_path = None for f in netrc_locations: - try: - loc = os.path.expanduser(f) - except KeyError: - # os.path.expanduser can fail when $HOME is undefined and - # getpwuid fails. See https://bugs.python.org/issue20164 & - # https://github.com/psf/requests/issues/1846 - return - + loc = os.path.expanduser(f) if os.path.exists(loc): netrc_path = loc break @@ -233,13 +229,7 @@ def get_netrc_auth(url, raise_errors=False): return ri = urlparse(url) - - # Strip port numbers from netloc. This weird `if...encode`` dance is - # used for Python 3.2, which doesn't support unicode literals. - splitstr = b":" - if isinstance(url, str): - splitstr = splitstr.decode("ascii") - host = ri.netloc.split(splitstr)[0] + host = ri.hostname try: _netrc = netrc(netrc_path).authenticators(host)