generated from edgexfoundry-holding/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
36 lines (27 loc) · 845 Bytes
/
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
#
# Copyright (C) 2022 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
.PHONY: all checkov test
all: test
checkov-install:
pip3 install checkov
trivy-install:
sudo apt-get install wget apt-transport-https gnupg lsb-release
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
echo "deb https://aquasecurity.github.io/trivy-repo/deb $$(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
sudo apt-get update
sudo apt-get install trivy
checkov:
which checkov > /dev/null 2>&1 || $(MAKE) checkov-install
checkov --framework helm -d .
snyk:
helm template . --output dir out
snyk iac test out/
@rm -fr out/
trivy:
which trivy > /dev/null 2>&1 || $(MAKE) trivy-install
trivy config -s CRITICAL,HIGH,MEDIUM .
test:
echo "Please run $(MAKE) checkov|snyk|trivy"