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.