From f028e416522e0ea154d9ecff59d1d900855219c7 Mon Sep 17 00:00:00 2001 From: HugoPBrito Date: Wed, 20 Nov 2024 11:14:15 +0100 Subject: [PATCH] feat: renamed first check --- .../__init__.py | 0 .../public_repository_has_securitymd_file.metadata.json} | 2 +- .../public_repository_has_securitymd_file.py} | 2 +- tests/providers/github/github_fixtures.py | 0 tests/providers/github/github_provider_test.py | 0 .../public_repository_has_securitymd_file_test.py | 0 .../github/services/repository/repository_service_test.py | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename prowler/providers/github/services/repository/{repository_public_has_securitymd_file => public_repository_has_securitymd_file}/__init__.py (100%) rename prowler/providers/github/services/repository/{repository_public_has_securitymd_file/repository_public_has_securitymd_file.metadata.json => public_repository_has_securitymd_file/public_repository_has_securitymd_file.metadata.json} (95%) rename prowler/providers/github/services/repository/{repository_public_has_securitymd_file/repository_public_has_securitymd_file.py => public_repository_has_securitymd_file/public_repository_has_securitymd_file.py} (96%) create mode 100644 tests/providers/github/github_fixtures.py create mode 100644 tests/providers/github/github_provider_test.py create mode 100644 tests/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file_test.py create mode 100644 tests/providers/github/services/repository/repository_service_test.py diff --git a/prowler/providers/github/services/repository/repository_public_has_securitymd_file/__init__.py b/prowler/providers/github/services/repository/public_repository_has_securitymd_file/__init__.py similarity index 100% rename from prowler/providers/github/services/repository/repository_public_has_securitymd_file/__init__.py rename to prowler/providers/github/services/repository/public_repository_has_securitymd_file/__init__.py diff --git a/prowler/providers/github/services/repository/repository_public_has_securitymd_file/repository_public_has_securitymd_file.metadata.json b/prowler/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file.metadata.json similarity index 95% rename from prowler/providers/github/services/repository/repository_public_has_securitymd_file/repository_public_has_securitymd_file.metadata.json rename to prowler/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file.metadata.json index 490c417dc4..666ae8e5d7 100644 --- a/prowler/providers/github/services/repository/repository_public_has_securitymd_file/repository_public_has_securitymd_file.metadata.json +++ b/prowler/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file.metadata.json @@ -1,6 +1,6 @@ { "Provider": "github", - "CheckID": "repository_public_has_securitymd_file", + "CheckID": "public_repository_has_securitymd_file", "CheckTitle": "Check if public repositories have a SECURITY.md file", "CheckType": [ "CIS GitHub Benchmark v1.0.0" diff --git a/prowler/providers/github/services/repository/repository_public_has_securitymd_file/repository_public_has_securitymd_file.py b/prowler/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file.py similarity index 96% rename from prowler/providers/github/services/repository/repository_public_has_securitymd_file/repository_public_has_securitymd_file.py rename to prowler/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file.py index f52f0a3fba..1094da060f 100644 --- a/prowler/providers/github/services/repository/repository_public_has_securitymd_file/repository_public_has_securitymd_file.py +++ b/prowler/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file.py @@ -6,7 +6,7 @@ from prowler.providers.github.services.repository.repository_client import ( ) -class repository_public_has_securitymd_file(Check): +class public_repository_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. diff --git a/tests/providers/github/github_fixtures.py b/tests/providers/github/github_fixtures.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/providers/github/github_provider_test.py b/tests/providers/github/github_provider_test.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file_test.py b/tests/providers/github/services/repository/public_repository_has_securitymd_file/public_repository_has_securitymd_file_test.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/providers/github/services/repository/repository_service_test.py b/tests/providers/github/services/repository/repository_service_test.py new file mode 100644 index 0000000000..e69de29bb2