[FR] Normalize yml ext to yaml (#3675)
Removed changes from:
- detection_rules/etc/packages.yml
(selectively cherry picked from commit 79f575b33c)
This commit is contained in:
committed by
github-actions[bot]
parent
1d7e597662
commit
2d96f10725
@@ -30,4 +30,4 @@ jobs:
|
||||
- id: get-branch-list
|
||||
run: |
|
||||
python -m detection_rules dev utils get-branches
|
||||
echo "::set-output name=matrix::$(cat ./detection_rules/etc/target-branches.yml)"
|
||||
echo "::set-output name=matrix::$(cat ./detection_rules/etc/target-branches.yaml)"
|
||||
|
||||
@@ -9,7 +9,7 @@ on:
|
||||
description: 'Sha256 hash of the merge commit to use in backporting'
|
||||
required: true
|
||||
exceptions:
|
||||
description: 'Comma seperated list of files to skip staging e.g. detection_rules/etc/packages.yml,detection_rules/attack.py)'
|
||||
description: 'Comma seperated list of files to skip staging e.g. detection_rules/etc/packages.yaml,detection_rules/attack.py)'
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
env:
|
||||
UNSTAGED_LIST_FILE: "../unstaged-rules.txt"
|
||||
run: |
|
||||
VERSION=$(cat detection_rules/etc/packages.yml | grep -oP "(?<=name:\s')[\d\.]+[-\w\.]*(?=')")
|
||||
VERSION=$(cat detection_rules/etc/packages.yaml | grep -oP "(?<=name:\s')[\d\.]+[-\w\.]*(?=')")
|
||||
python -m detection_rules dev unstage-incompatible-rules --target-stack-version "$VERSION" --exception-list "${{github.event.inputs.exceptions}}"
|
||||
|
||||
# Track which rules were unstaged
|
||||
|
||||
@@ -100,7 +100,7 @@ jobs:
|
||||
if: github.event.inputs.package_maturity == 'ga'
|
||||
run: |
|
||||
cd detection-rules
|
||||
output=$(cat detection_rules/etc/packages.yml | grep -oP '(?<=\sversion: )\S+')
|
||||
output=$(cat detection_rules/etc/packages.yaml | grep -oP '(?<=\sversion: )\S+')
|
||||
echo "pkg_version=$output" >> $GITHUB_ENV
|
||||
|
||||
- name: Create release tag
|
||||
|
||||
Reference in New Issue
Block a user