Skip to content

GitHub NuGet Private Source Authorisation

Actions
Authorises access to a private GitHub NuGet package source, so you can restore packages
v21.08.0
Latest
Star (2)

🔓 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.

GitHub NuGet Private Source Authorisation is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

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

GitHub NuGet Private Source Authorisation is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.