From c3c9f282347e90f1d48dcd67ac2fb5b64f2a30a2 Mon Sep 17 00:00:00 2001 From: Ryosuke Tomita <> Date: Sun, 17 Dec 2023 11:44:36 +0900 Subject: [PATCH] apt install -y --- copilot/pipelines/react-app-pipeline/buildspec.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/copilot/pipelines/react-app-pipeline/buildspec.yml b/copilot/pipelines/react-app-pipeline/buildspec.yml index 25156ec..63dc300 100644 --- a/copilot/pipelines/react-app-pipeline/buildspec.yml +++ b/copilot/pipelines/react-app-pipeline/buildspec.yml @@ -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: