File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments