My Digital Garden

GitHub Packages

GitHub Packages

Github packages offers a secure package feed supporting private or public packages compliant with Nuget, Ruby Gems or npm.

Accessing a Github Packages feed in local project

(instructions are for Windows, Nuget)

You will need:

  • the URL of the package feed
  • a Github Personal Access Token (clasasic) (PAT) with access to the feed of interest (at least read:packages scope)

Use the following command line:

dotnet nuget add source https://nuget.pkg.github.com/OWNER/index.json --name <SOURCE_NAME> --username <GITHUB_USERNAME> --password <PAT> --store-password-in-clear-text

See also