forked from ishii1648/action-checkov-reviewdog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
53 lines (52 loc) · 1.81 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'Checkov with Reviewdog GitHub Action'
author: 'bugners'
description: 'Run Checkov with Reviewdog against Terraform/CloudFormation infrastructure code, as a pre-packaged GitHub Action.'
inputs:
github_token:
description: 'GITHUB_TOKEN'
required: true
reporter:
description: |
Reporter of reviewdog command [github-pr-check,github-pr-review].
Default is github-pr-check.
default: 'github-pr-check'
filter_mode:
description: |
Filtering for the reviewdog command [added,diff_context,file,nofilter].
Default is added.
default: 'added'
fail_on_error:
description: |
Exit code for reviewdog when errors are found [true,false]
Default is `false`.
default: 'false'
working_directory:
description: |
Directory to run the action on, from the repo root.
Default is . ( root of the repository)
default: '.'
skip_check:
description: 'Run scan on all checks but a specific check identifier (comma separated)'
required: false
download_external_modules:
description: 'Enables checkov to download any external modules used in the terraform configuration'
default: 'false'
baseline:
description: 'Scan only reports failed checks that are new with respect to the provided baseline'
required: false
default: ''
branding:
icon: 'shield'
color: 'purple'
runs:
using: 'docker'
image: 'Dockerfile'
env:
INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
INPUT_REPORTER: ${{ inputs.reporter }}
INPUT_FILTER_MODE: ${{ inputs.filter_mode }}
INPUT_FAIL_ON_ERROR: ${{ inputs.fail_on_error }}
INPUT_WORKING_DIRECTORY: ${{ inputs.working_directory }}
INPUT_SKIP_CHECK: ${{ inputs.skip_check }}
INPUT_DOWNLOAD_EXTERNAL_MODULES: ${{ inputs.download_external_modules }}
INPUT_BASELINE: ${{ inputs.baseline }}