Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.3 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.3 KB

OSV.NET

GitHub Workflow Status OSV.NET NuGet Package Version OSSF-Scorecard Score

.NET libraries for Open Source Vulnerabilities (OSV) schema and API client.

Usage

  1. dotnet add package OSV.Client

  2. Create an instance of the OSVClient

    using var client = new OSVClient();
    // or
    using var client = new OSVClient("https://api.osv.dev/v1/");
  3. Use the client to make API calls

    var query = new Query
    {
        Package = new Package {
            Name = "jinja2",
            Ecosystem = Ecosystem.PyPI
        },
        Version = "2.4.1",
    }
    var vulnerabilityList = await client.QueryAffectedAsync(query)

License

All packages in this repository are licensed under the MIT license.