attempt trivy fix in workflow using github binary
Some checks failed
Build and Push Image / Build and push image (push) Failing after 36m44s
Some checks failed
Build and Push Image / Build and push image (push) Failing after 36m44s
it seems the trivy binary is causing a trivy failure :/
This commit is contained in:
parent
0d872ed029
commit
7211b02c69
@ -46,15 +46,10 @@ jobs:
|
||||
|
||||
- name: Trivy Scan
|
||||
run: |
|
||||
echo "Installing Trivy "
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y wget apt-transport-https gnupg lsb-release
|
||||
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 -y trivy
|
||||
echo "Installing Trivy (latest from GitHub)"
|
||||
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||
trivy image --format table --exit-code 1 --ignore-unfixed --vuln-type os,library --severity HIGH,CRITICAL git.aridgwayweb.com/armistace/pr-reviewer:latest
|
||||
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
echo "Installing Kubectl"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user