Possible incorrect sample code to add NuGet source for GitHub Packages #33778
Labels
actions
This issue or pull request should be reviewed by the docs actions team
content
This issue or pull request belongs to the Docs Content team
help wanted
Anyone is welcome to open a pull request to fix this issue
packages
This issue or pull request should be reviewed by the docs packages team
Code of Conduct
What article on docs.github.com is affected?
Working with the NuGet registry (https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry)
What part(s) of the article would you like to see updated?
The section Authenticating in a GitHub Actions workflow uses this code to add a Nuget feed source for GitHub Packages with the nuget registry:
dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/NAMESPACE/index.json"
and the instruction about the
NAMESPACE
placeholder is:But nothing is said about the
USERNAME
placeholder. Which value should be used? (it cannot be omitted because theusername
parameter is mandatory in the commanddotnet nuget add source
if thepassword
parameter is supplied).Additional information
No response
The text was updated successfully, but these errors were encountered: