Skip to content

"Datasource unauthorized" for private Nuget feed #8576

Answered by rarkins
ptr1120 asked this question in Request Help
Discussion options

You must be logged in to vote

If you're seeing text like ["{\"h with the escaped quote then it means that the hostRules have not been parsed as JSON and instead as strings. Try wrapping in [] because hostRules should be an array, not an object:

renovate --dry-run=true --host-rules '[{"hostType":"nuget","domainName":"mydomain","username":"$PRIVATE_NUGET_USERNAME","password":"$PRIVATE_NUGET_PASSWORD"}]'

Unfortunately CLI parsing can be challenging - a config.js could be easier if that doesn't work

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rarkins
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8576 on February 07, 2021 18:03.