Skip to content

Commit

Permalink
Merge pull request #547 from Yamato-Security/520-add-check-rule-parse…
Browse files Browse the repository at this point in the history
…-error

feat: add rule parse error check GitHub Actions
  • Loading branch information
YamatoSecurity authored Dec 15, 2023
2 parents 82e975e + 0f08446 commit b8eb800
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rule-parse-error-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Rule parse error check

on:
pull_request:

jobs:
rule-parse-error-check:
runs-on: ubuntu-latest
steps:
- name: clone hayabusa rule repo
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
path: hayabusa-rules

- name: clone hayabusa
uses: actions/checkout@v3
with:
repository: Yamato-Security/hayabusa
submodules: recursive
path: hayabusa

- name: clone hayabusa-sample-evtx
uses: actions/checkout@v3
with:
repository: Yamato-Security/hayabusa-sample-evtx
path: hayabusa-sample-evtx

- name: Set up Rust toolchain
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
uses: dtolnay/rust-toolchain@stable

- name: run csv-timeline
run: cd hayabusa && cargo run --release -- csv-timeline -d ../hayabusa-sample-evtx -r ../hayabusa-rules -w -o timeline.csv | grep "Rule parsing error" | wc -l | grep 0

0 comments on commit b8eb800

Please sign in to comment.