-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathentrypoint.sh
36 lines (35 loc) · 1.06 KB
/
entrypoint.sh
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
#!/bin/bash
set -o errexit
case $1 in
trivy)
case "$2" in
image|i|filesystem|fs|repo|repository)
echo ""
echo "########################"
echo " Scanning ......... "
echo "########################"
echo ""
"$@"
;;
esac
;;
semgrep)
case "$2" in
--config|-f|-c)
echo ""
echo "##############################################################################################################"
echo "# Append --config=/home/sec-tool/semgrep-rules/ci --config=/home/sec-tool/semgrep-rules/secrets #"
echo "# to skip external audit download Air-gapped area #"
echo "##############################################################################################################"
echo ""
"$@"
;;
esac
;;
"")
echo "Available Commands:"
echo " [*] trivy"
echo " [*] semgrep"
;;
esac
exec "$@"