Bump shell-quote from 1.8.1 to 1.8.2 #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |