Skip to content

Updated node modules to use new SAF CLI version and updated SAF Actio… #75

Updated node modules to use new SAF CLI version and updated SAF Actio…

Updated node modules to use new SAF CLI version and updated SAF Actio… #75

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