update trivy again
Some checks failed
Build and Push Image / Build and push image (push) Failing after 52m15s
Some checks failed
Build and Push Image / Build and push image (push) Failing after 52m15s
This commit is contained in:
parent
7211b02c69
commit
1a4bb3634b
@ -46,10 +46,12 @@ jobs:
|
||||
|
||||
- name: Trivy Scan
|
||||
run: |
|
||||
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_VERSION=$(curl -s https://api.github.com/repos/aquasecurity/trivy/releases/latest | grep '"tag_name"' | cut -d'"' -f4)
|
||||
wget -qO /tmp/trivy.tar.gz "https://github.com/aquasecurity/trivy/releases/download/${TRIVY_VERSION}/trivy_${TRIVY_VERSION#v}_Linux-64bit.tar.gz"
|
||||
tar xzf /tmp/trivy.tar.gz -C /usr/local/bin trivy
|
||||
chmod +x /usr/local/bin/trivy
|
||||
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"
|
||||
@ -72,4 +74,4 @@ jobs:
|
||||
--from-literal=TOTAL_FLOW_TIMEOUT=600 \
|
||||
--from-literal=PER_CREW_TIMEOUT=300 \
|
||||
--namespace=pr-reviewer
|
||||
kubectl apply -f kube/pr-reviewer_deployment.yaml && kubectl apply -f kube/pr-reviewer_service.yaml
|
||||
kubectl apply -f kube/pr-reviewer_deployment.yaml && kubectl apply -f kube/pr-reviewer_service.yaml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user