Skip to content

Commit

Permalink
awscli is already installed on GH hosted runners. No need for install…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
tomuben committed Oct 14, 2024
1 parent 6d29a52 commit cc85218
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/update_trivy_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,14 @@ jobs:
steps:
- name: Run install dependencies
run: |
sudo apt update && sudo apt install -y unzip curl wget apt-transport-https gnupg lsb-release
sudo apt update && sudo apt install -y 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: Run install awscli
run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install
working-directory: /tmp
env:
DEBIAN_FRONTEND: noninteractive
- name: Fetch trivy databases
run: |
trivy image --download-java-db-only
Expand Down

0 comments on commit cc85218

Please sign in to comment.