Issue
Recently in our CI, we have been experiencing grype db tcp read timeouts while downloading the db as part of using the action. This is leading to delayed and failed CVE scanning / additional time for the build pipelines to complete.
Version
Grype version: v0.74.4
Action Version: anchore/scan-action@v3.6.4
Observation
- This seems to be intermittent but more frequently lately (~2 weeks) and doesn't seem to be specific the above versions.
Expectation
- What is the default behavior when the
GRYPE_DB_AUTO_UPDATE: false is set ? Does the action fail or run on first and subsequent invocations assuming no other DB is imported manually? (Eg: When invoked multiple times within the same pipeline job?) - Testing it seems it did fail (Refer screenshots in below comment)
- Can the action be enhanced to always check DB status and only download latest DB even for a specific case where
GRYPE_DB_AUTO_UPDATE: false && DB_STATUS=invalid for first invocation of action within a single job?
- Are there any other recommendations to avoid the timeout issue / delayed scanning time? (Eg: How to increase / override the
db.update-download-timeout parameter in config across multiple repos using a shared workflow of this action?)
Issue
Recently in our CI, we have been experiencing grype db tcp read timeouts while downloading the db as part of using the action. This is leading to delayed and failed CVE scanning / additional time for the build pipelines to complete.
Version
Grype version:
v0.74.4Action Version:
anchore/scan-action@v3.6.4Observation
Expectation
GRYPE_DB_AUTO_UPDATE: falseis set ? Does the action fail or run on first and subsequent invocations assuming no other DB is imported manually? (Eg: When invoked multiple times within the same pipeline job?) - Testing it seems it did fail (Refer screenshots in below comment)GRYPE_DB_AUTO_UPDATE: false && DB_STATUS=invalidfor first invocation of action within a single job?db.update-download-timeoutparameter in config across multiple repos using a shared workflow of this action?)