forked from mgreen27/DetectRaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.12 KB
/
YaraFile.yaml
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
name: Weekly yara file update
permissions:
contents: write
on:
schedule:
- cron: '0 5 * * 0' # Runs at 05:00 every Sunday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install python requirements
run: |
sudo apt-get update
sudo apt-get install -y automake libtool make gcc pkg-config libssl-dev flex bison
pip install yara-python -q
pip install PyYAML==6.0 -q
pip install requests -q
pip install plyara -q #2.1.1
- name: Update yara rules and buildvql
run: |
mkdir -p ./vql
cd ./scripts
python get_file_yara.py
- name: Git Auto Commit
uses: stefanzweifel/[email protected]
with:
commit_message: AutoUpdate VQL and yara
file_pattern: yara/full_windows_file.yar.gz yara/full_linux_file.yar.gz yara/full_macos_file.yar.gz yara/yara-rules-full.yar