Skip to content

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

License

Notifications You must be signed in to change notification settings

JamieMagee/osv.net

Repository files navigation

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.