Skip to content

Authorises NuGet against a private GitHub package source, so you can restore packages.

License

Notifications You must be signed in to change notification settings

StirlingLabs/GithubNugetAuthAction

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔓 GitHub NuPkg Source Authorisation Action

Codacy Badge

Authorises access to a private GitHub NuGet package source, so you can restore packages.

⚠️ Warning

  • This Action writes the PAT value to disk in plain text... because NuGet requires that on linux.
  • Please ensure that you scope the PAT to only read packages and that you are prepared to accept the risk of the PAT escaping.

🚀 Quickstart

      - name: Authorise NuGet
        uses: StirlingLabs/GithubNugetAuthAction@main
        with:
          owner: ${{github.repository_owner}}
          name: MyNuPkgRepo
          token: ${{secrets.NUGET_PAT}}
      - name: Restore NuPkg
        run: dotnet restore SolutionName.sln

Parameters

Name Function
owner The owner of the package repository, defaults to the owner of the repository the Action is running within.
name Name of the package repository, defaults to "GitHub-$owner".
token Personal Access Token with permission to read packages.
force-cleartext-storage Force storing the token in clear text. This is a workaround for some .NET versions.

About

Authorises NuGet against a private GitHub package source, so you can restore packages.

Topics

Resources

License

Stars

Watchers

Forks

Languages