Move etc under detection_rules (#1885)

* Move etc directory under detection_rules
* Prepend original `etc` path with `detection_rules`
* Update docstrings in util and CODEOWNERS
* Add resiliency to tags to account for the old directory structure
* Bug fix: remove unused param caused by commit 6ed1a39efe

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>

Removed changes from:
- etc/packages.yml

(selectively cherry picked from commit 6219fc06b9)
This commit is contained in:
Mika Ayenson
2022-05-02 10:11:21 -04:00
committed by github-actions[bot]
parent 6a6d49a362
commit cc8af968e3
143 changed files with 84 additions and 68 deletions
+7 -7
View File
@@ -1,13 +1,13 @@
# detection-rules code owners
# POC: Elastic Security Intelligence and Analytics Team
tests/**/*.py @brokensound77 @rw-access
detection_rules/ @brokensound77 @rw-access
tests/ @brokensound77 @rw-access
tests/**/*.py @brokensound77 @mikaayenson @terrancedejesus
detection_rules/ @brokensound77 @mikaayenson @terrancedejesus
tests/ @brokensound77 @mikaayenson @terrancedejesus
# skip rta-mapping to avoid the spam
etc/packages.yml @brokensound77 @rw-access
etc/*.json @brokensound77 @rw-access
etc/*.json @brokensound77 @rw-access
etc/*/* @brokensound77 @rw-access
detection_rules/etc/packages.yml @brokensound77 @mikaayenson @terrancedejesus
detection_rules/etc/*.json @brokensound77 @mikaayenson @terrancedejesus
detection_rules/etc/*.json @brokensound77 @mikaayenson @terrancedejesus
detection_rules/etc/*/* @brokensound77 @mikaayenson @terrancedejesus
+3 -3
View File
@@ -3,10 +3,10 @@
- "./**/*.md"
- "schema":
- "detection_rules/beats.py"
- "etc/beats_schemas/**/*"
- "detection_rules/etc/beats_schemas/**/*"
- "detection_rules/ecs.py"
- "etc/ecs_schemas/**/*"
- "etc/api_schemas/**/*"
- "detection_rules/etc/ecs_schemas/**/*"
- "detection_rules/etc/api_schemas/**/*"
- "detection_rules/schemas/**/*"
- "python":
- "detection_rules/**/*.py"
+2 -2
View File
@@ -49,8 +49,8 @@ jobs:
env:
BRANCHES: "${{github.event.inputs.branches}}"
run: |
./etc/lock-multiple.sh $BRANCHES
git add etc/version.lock.json
./detection_rules/etc/lock-multiple.sh $BRANCHES
git add detection_rules/etc/version.lock.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3