Skip to content

Commit 76c174b

Browse files
committed
Add checkov CI check
1 parent c6e58d4 commit 76c174b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/checkov.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: security
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
checkov-job:
11+
runs-on: ubuntu-latest
12+
name: checkov-action
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v3
16+
- name: Run Checkov action
17+
id: checkov
18+
uses: bridgecrewio/[email protected]
19+
with:
20+
directory: .
21+
skip_check: CKV_GHA_7,CKV_K8S_10,CKV_K8S_11,CKV_K8S_12,CKV_K8S_13,CKV_K8S_14,CKV_K8S_15,CKV_K8S_16,CKV_K8S_17,CKV_K8S_20,CKV_K8S_21,CKV_K8S_22,CKV_K8S_23,CKV_K8S_25,CKV_K8S_26,CKV_K8S_28,CKV_K8S_29,CKV_K8S_30,CKV_K8S_31,CKV_K8S_32,CKV_K8S_35,CKV_K8S_36,CKV_K8S_37,CKV_K8S_38,CKV_K8S_40,CKV_K8S_43,CKV_K8S_7,CKV_K8S_8,CKV_K8S_9,CKV_SECRET_4
22+
quiet: true # optional: display only failed checks
23+
soft_fail: false # optional: do not return an error code if there are failed checks
24+
framework: all # optional: run only on a specific infrastructure {cloudformation,terraform,kubernetes,all}
25+
output_format: github_failed_only # optional: the output format, one of: cli, json, junitxml, github_failed_only, or sarif. Default: sarif
26+
download_external_modules: false # optional: download external terraform modules from public git repositories and terraform registry
27+
log_level: ERROR # optional: set log level. Default WARNING

0 commit comments

Comments
 (0)