Skip to content

Commit 3aaf049

Browse files
committed
(CDPE-7069) Update trivy calls to use cache
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.
1 parent 8dc28ce commit 3aaf049

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/build-test-push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
vuln-type: os
3030
timeout: 10m0s
3131
skip-files: "/root/.pdk/cache/ruby/*/gems/aws-sdk-core-*/lib/aws-sdk-ssooidc/client.rb"
32+
env:
33+
TRIVY_SKIP_DB_UPDATE: true
34+
TRIVY_SKIP_JAVA_DB_UPDATE: true
3235
- name: Run tests
3336
run: cd tests; ./run_tests.sh
3437
- name: Tag Docker images

.github/workflows/build-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
vuln-type: os
2929
timeout: 10m0s
3030
skip-files: "/root/.pdk/cache/ruby/*/gems/aws-sdk-core-*/lib/aws-sdk-ssooidc/client.rb"
31+
env:
32+
TRIVY_SKIP_DB_UPDATE: true
33+
TRIVY_SKIP_JAVA_DB_UPDATE: true
3134
- name: Run tests
3235
working-directory: ${{ github.workspace }}/tests
3336
run: ./run_tests.sh

.github/workflows/publish-4x-image.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
vuln-type: os
3434
timeout: 10m0s
3535
skip-files: "/root/.pdk/cache/ruby/*/gems/aws-sdk-core-*/lib/aws-sdk-ssooidc/client.rb"
36+
env:
37+
TRIVY_SKIP_DB_UPDATE: true
38+
TRIVY_SKIP_JAVA_DB_UPDATE: true
3639
- name: Publish standard image to 4.x
3740
env:
3841
IMAGE_TAG: ${{ github.event.inputs.image_tag }}

0 commit comments

Comments
 (0)