From 467621733de7f52b72a576e252cb1e451820d328 Mon Sep 17 00:00:00 2001 From: Evgenii Korolevskii Date: Fri, 30 Sep 2022 02:19:09 +0200 Subject: [PATCH] add packageSourceCredentials --- dist/index.js | 3 +++ src/authutil.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/dist/index.js b/dist/index.js index 7612bc7..8cfe4f9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -163,6 +163,9 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) { ] }); }); + xmlSource[1].configuration.push({ + packageSourceCredentials + }); // If NuGet fixes itself such that on Linux it can look for environment variables in the config file (it doesn't seem to work today), // use this for the value above // process.platform == 'win32' diff --git a/src/authutil.ts b/src/authutil.ts index 92378cd..53e14ad 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -172,6 +172,10 @@ function writeFeedToFile( }); }); + xmlSource[1].configuration.push({ + packageSourceCredentials + }); + // If NuGet fixes itself such that on Linux it can look for environment variables in the config file (it doesn't seem to work today), // use this for the value above // process.platform == 'win32'