Skip to content

Commit 31e9dce

Browse files
committed
feat(#106): add circleci job to scan IAM using checkov
1 parent 6247a76 commit 31e9dce

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.circleci/config.yml

+14
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ jobs:
154154
- store_artifacts:
155155
path: build/reports/dependency-vulnerabilities
156156
when: always
157+
checkov-scan:
158+
executor: helm
159+
steps:
160+
- checkout
161+
- run:
162+
name: Install checkov
163+
command: yum install python3-pip -y && sudo python3 -m pip install -U checkov -y
164+
- run:
165+
name: Scan K8s manifest and Docker using checkov
166+
command: checkov -d ./
157167
docker_lint_build_scan_push:
158168
executor: docker-git
159169
steps:
@@ -285,6 +295,10 @@ workflows:
285295
timeout: 25m
286296
requires:
287297
- Build
298+
- checkov-scan:
299+
name: Checkov IAC scan
300+
requires:
301+
- Build
288302
- docker_lint_build_scan_push:
289303
<<: *credential_context
290304
name: Docker Lint Build Scan Push

0 commit comments

Comments
 (0)