Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 8b9e1d9

Browse files
committed
fix: Install trivy using apt-get
this patch updates the background.sh file to use apt-get for installing trivy instead of snap as it fails quietly. Fixes #1 Signed-off-by: yolossn <[email protected]>
1 parent 23ffe59 commit 8b9e1d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

try-copa/background.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ curl -s https://api.github.com/repos/project-copacetic/copacetic/releases/latest
1212
tar -xzf copa*
1313
mv copa /usr/local/bin/copa
1414

15-
snap install trivy
15+
apt-get install wget gnupg
16+
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | tee /usr/share/keyrings/trivy.gpg > /dev/null
17+
echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | tee -a /etc/apt/sources.list.d/trivy.list
18+
apt-get update
19+
apt-get install trivy
1620

1721
touch /tmp/finished

0 commit comments

Comments
 (0)