From dbbf34da43168a3839f300991f437946314e428e Mon Sep 17 00:00:00 2001 From: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com> Date: Fri, 8 Nov 2024 20:13:21 +0530 Subject: [PATCH] Fix extra new line in ATT&CK-coverage.md (#4263) (cherry picked from commit c2e0a9315c7a10806419a665377f7ad67b5ed985) --- detection_rules/devtools.py | 19 +++++++++---------- pyproject.toml | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/detection_rules/devtools.py b/detection_rules/devtools.py index 83efbe46685..0df0fe10c99 100644 --- a/detection_rules/devtools.py +++ b/detection_rules/devtools.py @@ -836,20 +836,19 @@ def raw_permalink(raw_link): if update_coverage: coverage_file_path = get_path('docs', 'ATT&CK-coverage.md') - header_lines = textwrap.dedent(""" - # Rule coverage + header_lines = textwrap.dedent("""# Rule coverage - ATT&CK navigator layer files are generated when a package is built with `make release` or - `python -m detection-rules`.This also means they can be downloaded from all successful builds. +ATT&CK navigator layer files are generated when a package is built with `make release` or +`python -m detection-rules`.This also means they can be downloaded from all successful builds. - These files can be used to pass to a custom navigator session. For convenience, the links are - generated below. You can also include multiple across tabs in a single session, though it is not - advisable to upload _all_ of them as it will likely overload your browsers resources. +These files can be used to pass to a custom navigator session. For convenience, the links are +generated below. You can also include multiple across tabs in a single session, though it is not +advisable to upload _all_ of them as it will likely overload your browsers resources. - ## Current rule coverage +## Current rule coverage - The source files for these links are regenerated with every successful merge to main. These represent - coverage from the state of rules in the `main` branch. +The source files for these links are regenerated with every successful merge to main. These represent +coverage from the state of rules in the `main` branch. """) updated_file = header_lines + '\n\n' + '\n'.join(markdown) + '\n' # Replace the old URLs with the new ones diff --git a/pyproject.toml b/pyproject.toml index 10b2b57f8bc..c5aeba9a8bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "detection_rules" -version = "0.1.3" +version = "0.1.4" 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"