mirror of
https://github.com/mandiant/capa-rules
synced 2026-06-08 15:41:20 +00:00
56d13c9549
Create a CI GitHub action with a `rule_linter` job similar to the one in capa.
37 lines
911 B
YAML
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/
|
|
|