diff --git a/copilot/pipelines/react-app-pipeline/buildspec.yml b/copilot/pipelines/react-app-pipeline/buildspec.yml index 92c211f..ace9198 100644 --- a/copilot/pipelines/react-app-pipeline/buildspec.yml +++ b/copilot/pipelines/react-app-pipeline/buildspec.yml @@ -11,10 +11,10 @@ phases: # Download trivy. https://aquasecurity.github.io/trivy/v0.48/getting-started/installation/ - echo "install trivy" - RELEASE_VERSION=$(grep -Po '(?<=VERSION_ID=")[0-9]' /etc/os-release) - - cat << EOF | tee -a /etc/yum.repos.d/trivy.repo + - cat << 'EOF' | tee -a /etc/yum.repos.d/trivy.repo [trivy] name=Trivy repository - baseurl=https://aquasecurity.github.io/trivy-repo/rpm/releases/$RELEASE_VERSION/\$basearch/ + baseurl=https://aquasecurity.github.io/trivy-repo/rpm/releases/$RELEASE_VERSION/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://aquasecurity.github.io/trivy-repo/rpm/public.key @@ -23,7 +23,6 @@ phases: - yum -y install trivy - chmod +x trivy - build: commands: - echo "Run your tests"