-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.23 KB
/
example-usages.yml
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
name: Provide a few examples for using saf_action in GitHub workflows
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo to have access to test data
uses: actions/checkout@v4
- name: Test convert data
uses: mitre/saf_action@v1
with:
command_string: 'convert burpsuite2hdf -i ./test/sample_data/burpsuite_sample.min -o burpsuite_hdf.json'
- name: View summary of burpsuite results
uses: mitre/saf_action@main
with:
command_string: 'view summary -i burpsuite_hdf.json'
- name: Test validate threshold with -T
uses: mitre/saf_action@main
with:
command_string: 'validate threshold -i ./test/sample_data/red_hat_good.json -T "{\\"error.total\\": 0, \\"compliance.min\\": 50}"'
- name: Test validate threshold with -T with a space in the path
uses: mitre/saf_action@main
with:
command_string: 'validate threshold -i ./test/sample_data/red_hat_good\ with_space.json -T "{\\"error.total\\": 0, \\"compliance.min\\": 50}"'
- name: Artifacts
uses: actions/upload-artifact@v4
if: success()
with:
name: burpsuite
path: burpsuite_hdf.json