Skip to content

Commit

Permalink
Merge pull request #5 from RyosukeDTomita/feature/image-scan
Browse files Browse the repository at this point in the history
apt install -y
  • Loading branch information
RyosukeDTomita authored Dec 17, 2023
2 parents fcb1651 + c3c9f28 commit c0d70ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions copilot/pipelines/react-app-pipeline/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ phases:
- chmod +x ./copilot-linux
# Download trivy. https://aquasecurity.github.io/trivy/v0.48/getting-started/installation/
- apt-get update
- apt-get install wget apt-transport-https gnupg lsb-release
- wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null
- echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
- apt-get install -y wget apt-transport-https gnupg lsb-release
- wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | tee /usr/share/keyrings/trivy.gpg > /dev/null
- echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] 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
- apt-get install -y trivy
- chmod +x trivy

build:
Expand Down

0 comments on commit c0d70ad

Please sign in to comment.