StirlingLabs / GithubNugetAuthAction

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ”“ 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.

License:MIT License


Languages

Language:Shell 100.0%