generated from rickdevera/awsjams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtcs_setup.sh
executable file
·27 lines (21 loc) · 1.04 KB
/
tcs_setup.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
#!/bin/bash
# Script file to be used to for container security
#############
#Copy latest code from tenable
echo "Downloading Container Scanner..."
curl https://www.tenable.com/downloads/api/v2/pages/tenable-cs/files/tenable.cs-cli_latest_Linux_x86_64.tar.gz --output tenable.cs-cli_latest_Linux_x86_64.tar.gz
tar xzf tenable.cs-cli_latest_Linux_x86_64.tar.gz
chmod +x tcs
sudo mv tcs /usr/local/bin/
############
# Download the latest Terrascan
echo "Downloading Terrascan..."
curl -L "$(curl -s https://api.github.com/repos/tenable/terrascan/releases/latest | grep -o -E "https://.+?_Darwin_x86_64.tar.gz")" > terrascan.tar.gz
tar -xf terrascan.tar.gz terrascan && rm terrascan.tar.gz
sudo install terrascan /usr/local/bin && rm terrascan
# Download the latest IaC Scanner cli
echo "Downloading Tenable Cloud Security IaC scanner..."
curl -o accurics_linux https://downloads.accurics.com/cli/latest/accurics_linux
chmod +x accurics_linux
sudo install accurics_linux /usr/local/bin && rm accurics_linux
git clone https://github.com/tenable/tenablecs_demo.git