Skip to content

Commit

Permalink
Fix extra new line in ATT&CK-coverage.md (#4263)
Browse files Browse the repository at this point in the history
(cherry picked from commit c2e0a93)
  • Loading branch information
shashank-elastic authored and github-actions[bot] committed Nov 8, 2024
1 parent e97942d commit dbbf34d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions detection_rules/devtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit dbbf34d

Please sign in to comment.