Skip to content

Commit ab54194

Browse files
Sven27Sven27
authored andcommitted
Trivy issues
1 parent b077edd commit ab54194

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/security-scan.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ jobs:
9999
uses: actions/checkout@v3
100100

101101
- name: Install Trivy
102+
env:
103+
TRIVY_VERSION: 0.69.3
102104
run: |
103-
sudo apt update
104-
sudo apt install wget -y
105-
wget -qO- https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo tee /etc/apt/trusted.gpg.d/trivy.asc
106-
echo "deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/trivy.list
107-
sudo apt update
108-
sudo apt install -y trivy=0.69.3 jq
105+
wget -qO trivy.deb "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.deb"
106+
sudo dpkg -i trivy.deb
107+
rm trivy.deb
108+
sudo apt-get install -y jq
109109
110110
- name: Sanitize branch name
111111
run: echo "SAFE_REF_NAME=${GITHUB_REF_NAME//\//-}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)