5

I am trying to install a Nuget package that is hosted in Github Packages while running a Github Action.

This command works to add the source and the build is working:

dotnet nuget add source https://nuget.pkg.github.com/<ORGNAME>/index.json -n github -u <MY_USERNAME> -p ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text

So - this is working and my build runs fine.

But - I'd like to remove -u <MY_USERNAME> from the action. I'd like to use a generic value like ${{ secrets.GITHUB_TOKEN }}. If I leave the org or whatever - I don't want a dependency on a specific account.

jjnguy
  • 136,852
  • 53
  • 295
  • 323

1 Answers1

0

Use --username ${{ github.actor }}

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Sep 04 '22 at 10:15