Skip to main content

fetch_security_advisories

Function fetch_security_advisories 

Source
pub async fn fetch_security_advisories(
    limit: usize,
    cutoff_date: Option<&str>,
) -> Result<Vec<NewsFeedItem>, Box<dyn Error + Send + Sync>>
Expand description

What: Fetch security advisories through arch-toolkit.

Inputs:

  • limit: Maximum advisories to return.
  • cutoff_date: Optional oldest accepted YYYY-MM-DD date.

Output:

  • Pacsea feed rows or an actionable network/parse error.

ยงErrors

Returns an error when client construction, transport, response bounds, or feed parsing fails.

Details:

  • Standalone callers construct a configured context; runtime aggregation can share one through [fetch_security_advisories_with_context]. The feed response is bounded to 512 KiB.