Skip to content

Commit

Permalink
trivy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose-Matsuda committed Nov 8, 2024
1 parent 0458683 commit 3ef6a9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ jobs:
- run: ./.github/scripts/cleanup_runner.sh

# Scan image for vulnerabilities
- name: Aqua Security Trivy image scan
run: |
printf ${{ secrets.CVE_ALLOWLIST }} > .trivyignore
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin ${{ env.TRIVY_VERSION }}
trivy image ${{ steps.build-image.outputs.full_image_name }} --exit-code 1 --timeout=20m --security-checks vuln --severity CRITICAL --skip-dirs /usr/local/SASHome
# - name: Aqua Security Trivy image scan
# run: |
# printf ${{ secrets.CVE_ALLOWLIST }} > .trivyignore
# curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin ${{ env.TRIVY_VERSION }}
# trivy image ${{ steps.build-image.outputs.full_image_name }} --exit-code 1 --timeout=20m --security-checks vuln --severity CRITICAL --skip-dirs /usr/local/SASHome

# Push image to ACR
# Pushes if this is a push to master or an update to a PR that has auto-deploy label
Expand Down

0 comments on commit 3ef6a9d

Please sign in to comment.