You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Refactor primary Github Action
- Support writing the output to a file
- Add a test for uploading sarif to GH code scanning
* Updated action readme example
Copy file name to clipboardExpand all lines: github-action/README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,9 @@ The directory of the repo to search for violations. Default: `$GITHUB_WORKSPACE`
20
20
21
21
Additional arguments to pass to `cfn_nag_scan`. See the [usage for `cfn_nag_scan`](https://github.com/stelligent/cfn_nag#usage) for more options. Default: `--print-suppression`
22
22
23
+
### `output_path`
24
+
25
+
Destination file path for cfn_nag_scan output. Default: `cfn_nag.out`
23
26
## Example Usages
24
27
25
28
### Basic
@@ -62,6 +65,21 @@ Search the `templates` directory within the GitHub runner's workspace and remove
62
65
extra_args: ''
63
66
```
64
67
68
+
### Define path to search and upload to code scanning
69
+
70
+
Search the `templates` directory and upload the results to GitHub's Code Scanning.
71
+
72
+
```
73
+
- uses: stelligent/cfn_nag@master
74
+
with:
75
+
input_path: templates
76
+
extra_args: -o sarif
77
+
output_path: cfn_nag.sarif
78
+
- uses: github/codeql-action/upload-sarif@v1
79
+
with:
80
+
sarif_file: cfn_nag.sarif
81
+
```
82
+
65
83
## Support
66
84
67
85
To report a bug or request a feature, submit an issue through the GitHub repository via: https://github.com/stelligent/cfn_nag/issues/new
0 commit comments