Learn R Programming

rosv (version 0.5.1)

osv_vulns: Query OSV API for vulnerability information based on ID

Description

Use vulnerability IDs to extract more detailed information, usually paired with osv_querybatch().

Usage

osv_vulns(vuln_ids, parse = TRUE, cache = TRUE)

.osv_vulns(vuln_ids, parse = TRUE)

.osv_vulns_cache(vuln_ids, parse = TRUE)

Value

An R6 object containing API query contents.

Arguments

vuln_ids

Vector of vulnerability IDs.

parse

Boolean value to set if the content field should be parsed from JSON list format.

cache

Boolean value to determine if should use a cached version of the function and API results.

Functions

  • .osv_vulns(): Internal function to run osv_vulns without caching.

  • .osv_vulns_cache(): Internal function to run a memoise and cached version of osv_vulns.

Examples

Run this code
if (FALSE) { # interactive()
vulns <- osv_vulns("RSEC-2023-8")
get_content(vulns)
}

Run the code above in your browser using DataLab