Skip to content

CLI tool to check vulnerabilities in all NuGet packages.

License

Notifications You must be signed in to change notification settings

konek3/nuget-audit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nuget-audit

nuget-audit is a dotnet tool for checking vulnerabilities in your .NET projects.

Installation

dotnet tool install -g NugetAudit

Usage

First, you need to set environment variables for using OSS Index for scanning vulnerabilities:

export NUGET_AUDIT_API_KEY <your_key>
export NUGET_AUDIT_USERNAME <your_username>

Then, run:

nuget-audit --audit-level=(Low|Medium|High|Critical) (path)

Examples:

nuget-audit --audit-level=High .

nuget-audit --audit-level=Low ~/Projects/MyAwesomeProject/

Running in Docker

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS builder

RUN dotnet tool install --global NugetAudit

ENV PATH="/root/.dotnet/tools:${PATH}"
ENV NUGET_AUDIT_API_KEY="<your_api_key>"
ENV NUGET_AUDIT_USERNAME="<your_username>"

RUN nuget-audit --audit-level=High .

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

CLI tool to check vulnerabilities in all NuGet packages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages