snyk / parlay

Enrich SBOMs with data from third party services
Apache License 2.0
121 stars 19 forks source link

fix: handle Snyk API rate limit #86

Open mcombuechen opened 5 days ago

mcombuechen commented 5 days ago

When enriching a particularly large SBOM with Snyk vulnerabilities, the excessive amount of requests can trigger 429 Too Many Requests responses.

This introduces a retry mechanism to account for such a case and honor the retry-after value coming from the Snyk API.

Closes #83.

mcombuechen commented 4 days ago

Unit tests now failing due to nature of github.com/jarcoal/httpmock, investigating whether this can easily be fixed.