Skip to content

Commit

Permalink
hoge
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryosuke Tomita committed Dec 17, 2023
1 parent d2386d5 commit a75f9cf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions copilot/pipelines/react-app-pipeline/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ 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
# [trivy]
# name=Trivy repository
# 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
# EOF
- 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/
gpgcheck=1
enabled=1
gpgkey=https://aquasecurity.github.io/trivy-repo/rpm/public.key
EOF
- yum -y update
- yum -y install trivy
- chmod +x trivy
Expand Down

0 comments on commit a75f9cf

Please sign in to comment.