mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-06 09:12:46 +01:00
add rule parser actions
This commit is contained in:
15
.github/workflows/create-rule-meta.yml
vendored
15
.github/workflows/create-rule-meta.yml
vendored
@@ -17,8 +17,17 @@ jobs:
|
||||
repository: Yamato-Security/hayabusa-rules
|
||||
path: hayabusa-rules
|
||||
|
||||
- name: debug
|
||||
run: cd wela-extractor && ls -la ../hayabusa-rules && ls -la ../config
|
||||
|
||||
- name: Run
|
||||
run: cd wela-extractor && cargo run --release -- ../hayabusa-rules ../config/eid_subcategory_mapping.csv ../config/hayabusa-rule-meta.json
|
||||
|
||||
- name: Push changes
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git add *.json
|
||||
git commit -m "Automated update"
|
||||
if [ "$(git log -1 --pretty=%B)" = "Automated update" ]; then
|
||||
git push origin main
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user