FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sigma/.github/workflows/regression-tests.yml at master · SigmaHQ/sigma · GitHub
SigmaHQ
sigma
Repository navigation
Code
Issues
11
(11)
Pull requests
304
(304)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
sigma
/
.github
/
workflows
/
regression-tests.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
63 lines (51 loc) · 2.26 KB
Breadcrumbs
sigma
/
.github
/
workflows
/
regression-tests.yml
Copy path
File metadata and controls
63 lines (51 loc) · 2.26 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name
:
Regression Tests
on
:
[push, pull_request, workflow_dispatch]
env
:
EVTX_BASELINE_VERSION
:
v0.8.5
JSON_MATCHER_VERSION
:
v0.0.2
jobs
:
true-positive-tests
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
-
name
:
Set up Python
uses
:
actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
#
v7
with
:
python-version
:
'
3.11
'
cache
:
'
pip
'
cache-dependency-path
:
tests/regression_requirements.txt
-
name
:
Install Python dependencies
run
:
|
python -m pip install --upgrade pip
pip install -r tests/regression_requirements.txt
-
name
:
Cache evtx-sigma-checker
id
:
cache-evtx-checker
uses
:
actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
#
v6.1.0
with
:
path
:
evtx-sigma-checker
key
:
evtx-sigma-checker-${{ env.EVTX_BASELINE_VERSION }}
-
name
:
Download evtx-sigma-checker
if
:
steps.cache-evtx-checker.outputs.cache-hit != 'true'
run
:
|
wget --no-verbose https://github.com/NextronSystems/evtx-baseline/releases/download/$EVTX_BASELINE_VERSION/evtx-sigma-checker
chmod +x evtx-sigma-checker
-
name
:
Set evtx-sigma-checker permissions
if
:
steps.cache-evtx-checker.outputs.cache-hit == 'true'
run
:
chmod +x evtx-sigma-checker
-
name
:
Cache json-checker
id
:
cache-json-checker
uses
:
actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
#
v6.1.0
with
:
path
:
json_checker
key
:
json-checker-${{ env.JSON_MATCHER_VERSION }}
-
name
:
Download json-checker
if
:
steps.cache-json-checker.outputs.cache-hit != 'true'
run
:
|
wget --no-verbose https://github.com/SigmaHQ/json_matcher/releases/download/$JSON_MATCHER_VERSION/json_matcher_$JSON_MATCHER_VERSION -O json_checker
chmod +x json_checker
-
name
:
Set json-checker permissions
if
:
steps.cache-json-checker.outputs.cache-hit == 'true'
run
:
chmod +x json_checker
-
name
:
Run regression tests
run
:
|
python tests/regression_tests_runner.py --rules-paths rules rules-emerging-threats rules-threat-hunting --evtx-checker ./evtx-sigma-checker --thor-config tests/thor.yml --ignore-validation --json-checker ./json_checker
Back
|
FazBrowse Home
|
New Git URL