diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ce2acd..fde1980 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,8 +22,3 @@ repos: rev: 6.1.0 hooks: - id: flake8 - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.5.1 - hooks: - - id: mypy - additional_dependencies: ["types-requests"] diff --git a/oras/provider.py b/oras/provider.py index 16475ae..2927b81 100644 --- a/oras/provider.py +++ b/oras/provider.py @@ -987,7 +987,9 @@ def authenticate_request(self, originalResponse: requests.Response) -> bool: logger.debug(f"Scope: {h.scope}") params["scope"] = h.scope - authResponse = self.session.get(h.realm, headers=headers, params=params) # type: ignore + authResponse = self.session.get( + h.realm, headers=headers, params=params, verify=self._tls_verify + ) if authResponse.status_code != 200: logger.debug(f"Auth response was not successful: {authResponse.text}") return False