-
Notifications
You must be signed in to change notification settings - Fork 64.8k
Update configuring-dotnet-cli-for-use-with-github-packages.md #3935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The article doesn't otherwise mention how to authenticate to GitHub Packages in an Action - it just links to a non-helpful GITHUB_TOKEN page. The dotnet nuget add source allows for authenticating to GitHub packages without having to source control a GitHub token.
|
Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
|
Thanks so much for opening a PR and explaining your changes so thoroughly @soccerjoshj07! I'll get this triaged for review ✨ |
|
Hey @soccerjoshj07, our sincere apologies for not getting back to you on this PR. It's my understanding that the page you're changing in this PR no longer exists and the information has been moved. We believe that the change you're proposing would still be useful but it would probably best be added to this page: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry#authenticating-to-github-packages. Would you mind updating the PR or creating a new one with the change in the new location? Let us know! And again, I apologize for it taking so long to get back to you. We're still working out the bugs in our process here, please bear with us! |
Why:
The article doesn't otherwise mention how to authenticate to GitHub Packages in a GitHub Actions workflow - it just links to a generic GITHUB_TOKEN page. The
dotnet nuget add sourcecommand allows for authenticating to GitHub packages without having to source control a GitHub token.I thought this simple one-liner would be very helpful in consuming GitHub Packages in a an effecient manner instead of having to sift through Stack Overflow posts on how to do this.
What's being changed:
Adding an example command that can be used to authenticate to GitHub Packages in a GitHub Action without committing a secret to source control:
(If this link still works) The change can be found on the Heroku page here:

Check off the following: