Compare commits

...

2 Commits

Author SHA1 Message Date
088a4ddf4c
lets just install trivy
Some checks failed
Build and Push Image / Build and push image (push) Failing after 21m2s
2025-09-29 20:06:33 +10:00
fa4deafcc6
lets just install trivy 2025-09-29 20:06:03 +10:00

View File

@ -45,14 +45,15 @@ jobs:
git.aridgwayweb.com/armistace/blog:latest git.aridgwayweb.com/armistace/blog:latest
- name: Trivy Scan - name: Trivy Scan
uses: aquasecurity/trivy-action@master run: |
with: echo "Installing Trivy
image-ref: ${{ vars.DOCKER_SERVER }}/${{ vars.DOCKER_USERNAME }}/blog:latest sudo apt-get update
format: table sudo apt-get install wget apt-transport-https gnupg lsb-release
exit-code: 1 wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add -
ignore-unfixed: true echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list
vuln-type: os,library sudo apt-get update
severity: HIGH,CRITICAL sudo apt-get install trivy
trivy image --format table --exit-code 1 --ignore-unfixed --vuln-type os,library --severity HIGH,CRITICAL git.aridgwayweb.com/armistace/blog:latest
- name: Deploy - name: Deploy
run: | run: |