Skip to content

Commit

Permalink
Defaulting to use grype cdn and skip cache by default (#152)
Browse files Browse the repository at this point in the history
* Defaulting to use grype cdn and skip cache by default

only use cache during cdn failures and set explicitly

* remove unwanted typo
  • Loading branch information
saisatishkarra authored Sep 3, 2024
1 parent a1f9449 commit d4d6b2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion security-actions/sca/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ inputs:
- 'false'
skip_grype_db_cache:
required: false
default: false
default: true
description: 'Skip the caching of the Grype DB during the SBOM (Software Bill of Materials) scanning process'
type: choice
options:
Expand Down
8 changes: 4 additions & 4 deletions security-actions/scan-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ inputs:
- 'false'
skip_grype_db_cache:
required: false
default: false
default: true
description: 'Skip grype db caching'
type: choice
options:
Expand Down Expand Up @@ -219,7 +219,7 @@ runs:
add-cpes-if-none: true
severity-cutoff: ${{ steps.meta.outputs.global_severity_cutoff }}
env:
GRYPE_DB_AUTO_UPDATE: false
GRYPE_DB_AUTO_UPDATE: false # Use grype db pointed from grype_db step above

# Don't fail during report generation
# JSON format will report any ignored rules
Expand All @@ -234,7 +234,7 @@ runs:
add-cpes-if-none: true
severity-cutoff: ${{ steps.meta.outputs.global_severity_cutoff }}
env:
GRYPE_DB_AUTO_UPDATE: false # Use grype db cache from grype step above
GRYPE_DB_AUTO_UPDATE: false # Use grype db pointed from grype_db step above

- name: Check vulnerability analysis report existence
if: ${{ steps.grype_db_check_updates.outputs.GRYPE_DB_UPDATE_STATUS == 0 }} # Run only if DB is available on the runner
Expand Down Expand Up @@ -285,7 +285,7 @@ runs:
add-cpes-if-none: true
severity-cutoff: ${{ steps.meta.outputs.global_severity_cutoff }}
env:
GRYPE_DB_AUTO_UPDATE: false # Use grype db cache from grype step above
GRYPE_DB_AUTO_UPDATE: false # Use grype db pointed from grype_db step above

- name: Check docker OCI tar existence
if: ${{ steps.meta.outputs.scan_image != '' }}
Expand Down

0 comments on commit d4d6b2a

Please sign in to comment.