Created
March 31, 2024 19:15
-
-
Save sanju2/00705aca2b2d8d1efebbb0c1618a6551 to your computer and use it in GitHub Desktop.
Trivy-Install-Ubuntu-EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install wget apt-transport-https gnupg lsb-release -y | |
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 -y | |
#trivy --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment