Files
mandiant-capa-rules/.github/workflows/tests.yml
T
Ana María Martínez Gómez 56d13c9549 ci: Run rules linter in master and PRs
Create a CI GitHub action with a `rule_linter` job similar to the one in
capa.
2020-07-17 15:37:22 +02:00

37 lines
911 B
YAML

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
rule_linter:
runs-on: ubuntu-latest
steps:
# We check the submodules separately as the rules submodule's reference may not be our PR/master
- name: Checkout capa without submodules
uses: actions/checkout@v2
with:
repository: fireeye/capa
- name: Checkout capa-rules
uses: actions/checkout@v2
with:
path: rules
- name: Checkout capa-testfiles
uses: actions/checkout@v2
with:
repository: fireeye/capa-testfiles
path: tests/data
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
# We don't need vivisect, so we can install capa using Python3
- name: Install capa
run: pip install -e .
- name: Run rule linter
run: python scripts/lint.py rules/