Skip to content

Make OWASP daily dependency scan resilient to NVD timeouts#1154

Merged
kaxuna merged 2 commits into
mainfrom
fix-owasp-scan-timeouts
Jun 22, 2026
Merged

Make OWASP daily dependency scan resilient to NVD timeouts#1154
kaxuna merged 2 commits into
mainfrom
fix-owasp-scan-timeouts

Conversation

@kaxuna

@kaxuna kaxuna commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Description

The daily security scan workflow (dumper_daily_vulnerability_OWASP_scan.yml) was failing due to HTTP 524 Cloudflare timeouts during the initial NVD vulnerability database synchronization. This is caused by severe instability and rate-limiting on the NVD API v2.

This PR makes the NVD synchronization more resilient by:

  1. Safely handling the NVD API Key: Only passing the --nvdApiKey parameter if the secret NVD_API_KEY is actually configured (non-empty), avoiding empty-string auth issues.
  2. Increasing connection and read timeouts: Setting --connectiontimeout 120000 and --readtimeout 120000 (120 seconds) to tolerate NVD API sluggishness.
  3. Increasing retry limits: Setting --nvdMaxRetryCount 20 to allow the runner to recover from transient Cloudflare timeout spikes.

Once the initial sync succeeds, subsequent runs will use the cached database and only download daily incremental updates, making them extremely fast and reliable.

kaxuna added 2 commits June 22, 2026 11:39
…mits

The NVD API v2 is extremely slow and unstable, especially when performing a full sync (cold start). This frequently triggers HTTP 524 Cloudflare timeouts.

This change:
- Dynamically handles NVD_API_KEY, avoiding passing an empty API key flag that could cause rate-limit penalties.
- Increases connection and read timeouts to 120 seconds to tolerate NVD API slowness.
- Increases the maximum NVD API request retry count to 20 to handle transient network errors.
@kaxuna kaxuna requested a review from shevek-google as a code owner June 22, 2026 13:42
@github-actions github-actions Bot added the BUILD label Jun 22, 2026
@github-actions

Copy link
Copy Markdown

Code Coverage Report

Overall Project 64.18% 🍏

There is no coverage information present for the Files changed

@kaxuna kaxuna requested a review from sayuzbas-google June 22, 2026 14:29
@kaxuna kaxuna merged commit 3b7d14c into main Jun 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants