osv_scan: Use OSV database to scan for vulnerabilities

View source: R/scans.R

osv_scanR Documentation

Use OSV database to scan for vulnerabilities

Description

Scan project based upon specified mode to determine if any vulnerable packages are detected.

Usage

osv_scan(mode, ...)

Arguments

mode

The kind of scan to perform.

...

Parameters passed to specific underlying functions for mode selected.

Details

The available scanning modes are: 'r_project', 'renv', and 'r_libath'. The 'r_libpath' mode simply performs all R project related scans at once. Emphasis is placed on scans of R related content. Additional parsing and scanning modes will be added over time as needed. If a mode does not exist for a particular purpose, alternate functions such as is_pkg_vulnerable() can be used with any list of package names for ecosystems available in the OSV database.

Value

A data.frame specifying which packages are vulnerable or not.

See Also

is_pkg_vulnerable

Examples


osv_scan('r_libpath')


rosv documentation built on May 29, 2024, 2:58 a.m.