Skip to content

Commit c35e71f

Browse files
Merge pull request #1 from rapid7/ENG-19805
ENG-19805 support explicit driver as input
2 parents 928a78b + 40f83c7 commit c35e71f

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/pull_request_example.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
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

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3538
An example workflow may look like this:
@@ -61,5 +64,4 @@ jobs:
6164
uses: github/codeql-action/upload-sarif@v2
6265
with:
6366
sarif_file: scan_output.sarif
64-
6567
```

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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: ""
2125
outputs:
2226
stdout:
2327
description: Output of the mimics scan command
@@ -34,6 +38,8 @@ runs:
3438
- ${{ inputs.config_name }}
3539
- -s
3640
- ${{ inputs.scan_name }}
41+
- -p
42+
- ${{ inputs.driver }}
3743
- --report-formats
3844
- all
3945
- --no-progress

0 commit comments

Comments
 (0)