feat: revert poetry lock

This commit is contained in:
HugoPBrito committed 2024-11-25 13:51:01 +01:00
1 parent 4e64a26ece
commit 1d0243652e
2 files changed
+376 -375

No files matched your search

Generated
+370 -370
View File
File diff suppressed because it is too large. Load diff
+6 -5
View File
@@ -15,7 +15,6 @@ from prowler.providers.common.provider import Provider
from prowler.providers.github.exceptions.exceptions import (
GithubEnvironmentVariableError,
GithubInvalidTokenError,
GithubNonExistentTokenError,
GithubSetUpIdentityError,
GithubSetUpSessionError,
)
@@ -26,6 +25,7 @@ from prowler.providers.github.models import GithubIdentityInfo, GithubSession
class GithubProvider(Provider):
_type: str = "github"
_auth_method: str
_pat: str
_session: GithubSession
_identity: GithubIdentityInfo
_audit_config: dict
@@ -99,6 +99,11 @@ class GithubProvider(Provider):
"""Returns the authentication method for the GitHub provider."""
return self._auth_method
@property
def pat(self):
"""Returns the personal access token for the GitHub provider."""
return self._pat
@property
def session(self):
"""Returns the session object for the GitHub provider."""
@@ -198,10 +203,6 @@ class GithubProvider(Provider):
logger.critical(
"GitHub provider: A Github token is required to authenticate against Github."
)
raise GithubNonExistentTokenError(
file=os.path.basename(__file__),
message="A Github token is required to authenticate against Github.",
)
credentials = GithubSession(token=session_token)