File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,23 +11,7 @@ concurrency:
1111
1212jobs :
1313 suricata-check :
14- name : Suricata Check
1514 runs-on : ubuntu-latest
16-
17- strategy :
18- fail-fast : true
19-
2015 steps :
21- - uses : actions/checkout@v5
22-
23- - name : Set up Python
24- uses : actions/setup-python@v6
25-
26- - name : Install dependencies
27- run : |
28- python -m pip install --upgrade --upgrade-strategy eager pip
29- python -m pip install suricata-check[performance]
30-
31- - name : Test with suricata-check
32- run : |
33- suricata-check --github
16+ - uses : actions/checkout@v4
17+ - uses : Koen1999/suricata-check-action@master
Original file line number Diff line number Diff line change 1- # suricata-check-action
2- GitHub workflow action for suricata-check
1+ # suricata-check-action Example
2+
3+ This repository demonstrates how to use the ` suricata-check-action ` to validate Suricata rules.
4+
5+ ## Overview
6+
7+ The ` suricata-check-action ` is a reusable GitHub Action that runs ` suricata-check ` to highlight issues in your rulesets.
8+
9+ ## Basic Setup
10+
11+ This example includes:
12+ - ` suricata.rules ` : A sample ruleset to check.
13+ - ` suricata-check.ini ` : A configuration file for ` suricata-check ` .
14+
15+ ## Usage
16+
17+ To use this action in your own project, add the following workflow to ` .github/workflows/suricata-check.yml ` :
18+
19+ ``` yaml
20+ name : Suricata Check
21+
22+ on :
23+ pull_request :
24+ branches : ["main", "master"]
25+ push :
26+ branches : ["main", "master"]
27+
28+ concurrency :
29+ group : ${{ github.ref }}
30+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
31+
32+ jobs :
33+ suricata-check :
34+ runs-on : ubuntu-latest
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : Koen1999/suricata-check-action@v1.0
38+ ` ` `
You can’t perform that action at this time.
0 commit comments