mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-02-09 15:10:36 +00:00
fix: reverted name
This commit is contained in:
@@ -6,7 +6,7 @@ from prowler.providers.github.services.repository.repository_client import (
|
||||
)
|
||||
|
||||
|
||||
class public_repository_has_securitymd_file(Check):
|
||||
class repository_public_has_securitymd_file(Check):
|
||||
"""Check if a public repository has a SECURITY.md file
|
||||
|
||||
This class verifies whether each public repository has a SECURITY.md file.
|
||||
|
||||
@@ -1,3 +1,22 @@
|
||||
from mock import MagicMock
|
||||
from prowler.providers.github.github_provider import GithubProvider
|
||||
from prowler.providers.github.models import GithubIdentityInfo, GithubSession
|
||||
|
||||
# GitHub Identity
|
||||
ACCOUNT_NAME = "Account Name"
|
||||
ACCOUNT_ID = ""
|
||||
ACCOUNT_NAME = "account-name"
|
||||
ACCOUNT_ID = "account-id"
|
||||
ACCOUNT_URL = "/user"
|
||||
|
||||
# Mocked GitHub Provider
|
||||
def set_mocked_github_provider(
|
||||
credentials:
|
||||
) -> GithubProvider:
|
||||
provider = MagicMock()
|
||||
provider.type = "github"
|
||||
provider.session = GithubSession()
|
||||
provider.identity = GithubIdentityInfo(
|
||||
account_name=ACCOUNT_NAME,
|
||||
account_id=ACCOUNT_ID,
|
||||
account_url=ACCOUNT_URL,
|
||||
)
|
||||
return provider
|
||||
Reference in New Issue
Block a user