Skip to content

Commit

Permalink
Fixed GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Sep 24, 2024
1 parent 0771396 commit 2d46de2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/update_trivy_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,18 @@ jobs:
steps:
- name: Run install dependencies
run: |
apt update && apt install -y awscli curl wget apt-transport-https gnupg lsb-release
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | apt-key add -
echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | tee -a /etc/apt/sources.list.d/trivy.list
apt-get update
apt-get install trivy
sudo apt update && sudo apt install -y awscli curl 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
env:
DEBIAN_FRONTEND: noninteractive
- name: Fetch trivy databases
run: |
trivy image --download-java-db-only
trivy image --download-db-only
- name: Fetch trivy databases
run: |
trivy image --download-java-db-only
trivy image --download-db-only
- name: Copy trivy databases
run: aws s3 cp --recursive "$HOME/.cache/trivy/" "$TRIVY_CACHE_LOCATION"
env: # Set the secret as an env variable
Expand Down

0 comments on commit 2d46de2

Please sign in to comment.