Skip to content

Commit

Permalink
Trivy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Paulic committed Sep 20, 2024
1 parent 964c6fb commit b78f51b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/reusable-workflow-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ jobs:
run: |
docker push $REGISTRY/$IMAGE_NAME:$IMAGE_TAG
- name: Check image
- name: Setup Trivy
run: |
sudo apt-get install 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 trivy
- name: Check image with Trivy
run: |
trivy image $REGISTRY/$IMAGE_NAME:$IMAGE_TAG
Expand Down

0 comments on commit b78f51b

Please sign in to comment.