Skip to content

Commit

Permalink
(CDPE-7069) Update trivy calls to use cache
Browse files Browse the repository at this point in the history
This commit reverts the change to remove trivy scans.  In order to avoid
the rate limiting errors that prompted their removal, this commit
switches the trivy scans over to using a local cache of their DB.  That
DB is refreshed daily via a separate workflow.
  • Loading branch information
abottchen committed Nov 15, 2024
1 parent 8dc28ce commit 3aaf049
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-test-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
vuln-type: os
timeout: 10m0s
skip-files: "/root/.pdk/cache/ruby/*/gems/aws-sdk-core-*/lib/aws-sdk-ssooidc/client.rb"
env:
TRIVY_SKIP_DB_UPDATE: true
TRIVY_SKIP_JAVA_DB_UPDATE: true
- name: Run tests
run: cd tests; ./run_tests.sh
- name: Tag Docker images
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
vuln-type: os
timeout: 10m0s
skip-files: "/root/.pdk/cache/ruby/*/gems/aws-sdk-core-*/lib/aws-sdk-ssooidc/client.rb"
env:
TRIVY_SKIP_DB_UPDATE: true
TRIVY_SKIP_JAVA_DB_UPDATE: true
- name: Run tests
working-directory: ${{ github.workspace }}/tests
run: ./run_tests.sh
3 changes: 3 additions & 0 deletions .github/workflows/publish-4x-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
vuln-type: os
timeout: 10m0s
skip-files: "/root/.pdk/cache/ruby/*/gems/aws-sdk-core-*/lib/aws-sdk-ssooidc/client.rb"
env:
TRIVY_SKIP_DB_UPDATE: true
TRIVY_SKIP_JAVA_DB_UPDATE: true
- name: Publish standard image to 4.x
env:
IMAGE_TAG: ${{ github.event.inputs.image_tag }}
Expand Down

0 comments on commit 3aaf049

Please sign in to comment.