diff --git a/detection_rules/integrations.py b/detection_rules/integrations.py index 172204888..5c9666729 100644 --- a/detection_rules/integrations.py +++ b/detection_rules/integrations.py @@ -113,8 +113,6 @@ def build_integrations_manifest( def build_integrations_schemas(overwrite: bool, integration: str | None = None) -> None: """Builds a new local copy of integration-schemas.json.gz from EPR integrations.""" - saved_integration_schemas = {} - # Check if the file already exists and handle accordingly if overwrite and SCHEMA_FILE_PATH.exists(): SCHEMA_FILE_PATH.unlink() @@ -139,7 +137,7 @@ def build_integrations_schemas(overwrite: bool, integration: str | None = None) print(f"processing {package}") final_integration_schemas.setdefault(package, {}) # type: ignore[reportUnknownMemberType] for version, manifest in versions.items(): - if package in saved_integration_schemas and version in saved_integration_schemas[package]: + if package in final_integration_schemas and version in final_integration_schemas[package]: continue # Download the zip file diff --git a/pyproject.toml b/pyproject.toml index 463ce387b..bd4d3dd0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "detection_rules" -version = "1.3.9" +version = "1.3.10" description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine." readme = "README.md" requires-python = ">=3.12"