File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1818 config_name : AWS CIS Benchmark 1.4
1919 scan_name : Scan on Pull Request
2020 target : example.yml
21+ driver : cft
2122 - name : Upload SARIF file
2223 if : always()
2324 uses : github/codeql-action/upload-sarif@v2
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ Read how to set secrets here: https://docs.github.com/en/actions/security-guides
3030
3131 # File to scan
3232 target : example.yml
33+
34+ # Optional driver to use when unable to autodetect (terraform|cft)
35+ driver : terraform
3336` ` `
3437
3538An example workflow may look like this:
6164 uses : github/codeql-action/upload-sarif@v2
6265 with :
6366 sarif_file : scan_output.sarif
64-
6567` ` `
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ inputs:
1818 scan_name :
1919 description : Name of this scan
2020 required : true
21+ driver :
22+ description : Name of the scan driver to use (e.g. terraform|cft)
23+ required : false
24+ default : " "
2125outputs :
2226 stdout :
2327 description : Output of the mimics scan command
3438 - ${{ inputs.config_name }}
3539 - -s
3640 - ${{ inputs.scan_name }}
41+ - -p
42+ - ${{ inputs.driver }}
3743 - --report-formats
3844 - all
3945 - --no-progress
You can’t perform that action at this time.
0 commit comments