mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-17 00:44:17 +00:00
feat: revert poetry lock
This commit is contained in:
2 files changed
+376
-375
No files matched your search
Generated
+370
-370
File diff suppressed because it is too large.
Load diff
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user