Skip to content

Conversation

@jdalton
Copy link
Contributor

@jdalton jdalton commented Nov 26, 2025

Backport of 1eb38d0 to v1.x.

Improves CVE to GHSA conversion caching and error messaging.


Note

Caches CVE-to-GHSA lookups for 30 days and adds explicit GitHub rate-limit detection with clearer error messaging.

  • Utils:
    • src/utils/cve-to-ghsa.mts:
      • Cache convertCveToGhsa results for 30 days via cacheFetch TTL.
      • Add GitHub rate-limit detection (rate limit, EPIPE, ECONNRESET, 403) with specific guidance; otherwise return concise error cause.
      • Return early when no advisories found and extract ghsa_id from first result.

Written by Cursor Bugbot for commit efe226f. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment @cursor review or bugbot run to trigger another review on this PR

- Use case-insensitive error matching for more reliable detection
- Add more specific status code patterns (status: 403, status code 403)
- Express 30-day duration as readable calculation (30 * 24 * 60 * 60 * 1000)
- Remove redundant inline comment
- Rename variable for clearer intent (isGitHubRateLimit -> isRateLimitOrNetworkError)
@jdalton jdalton merged commit a6cb9c8 into v1.x Nov 26, 2025
7 checks passed
@jdalton jdalton deleted the jdalton/backport-rate-and-messaging branch November 26, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants