-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
47 lines (45 loc) · 2.01 KB
/
Makefile
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
SHELL:=/bin/bash
# ---------------------------------------------------------------------------------------------------------------------
# Demo
# ---------------------------------------------------------------------------------------------------------------------
demo-iam-vulnerable:
sh ./scripts/demo-iam-vulnerable.sh
demo-resource-exposure:
sh ./scripts/demo-resource-exposure.sh
demo-sadcloud:
sh ./scripts/demo-sadcloud.sh
demo-terragoat:
cd terragoat/terraform/aws
echo "TODO: Let's add Terragoat instructions here"
demo-prowler:
sh ./scripts/demo-prowler.sh
# ---------------------------------------------------------------------------------------------------------------------
# Environment setup and management
# ---------------------------------------------------------------------------------------------------------------------
install-tf:
brew install tfenv
tfenv install 1.0.9
tfenv use 1.0.9
install-checkov:
brew install checkov
# ---------------------------------------------------------------------------------------------------------------------
# Git Submodules updates
# This is necessary because we leverage a Microsoft Azure repository as a data source.
# ---------------------------------------------------------------------------------------------------------------------
update-submodule:
git submodule init
git submodule update
update-submodule-with-merge:
git submodule init
git submodule update --remote --merge
# ---------------------------------------------------------------------------------------------------------------------
# Scanning
# ---------------------------------------------------------------------------------------------------------------------
checkov-filtered:
checkov -d terragoat/terraform/aws --config .checkov-filter-noise.yml
checkov-enable-all:
checkov -d terragoat/terraform/aws --config .checkov-enable-all.yml
checkov-simple-filtered:
checkov -d checkov-simple --config .checkov-filter-noise.yml
checkov-simple-enable-all:
checkov -d checkov-simple --config .checkov-enable-all.yml